Merge "Don't use --skip-redirect for cinder restart on rhel6"

This commit is contained in:
Jenkins 2014-02-27 04:31:17 +00:00 committed by Gerrit Code Review
commit 5d1e8bcddf

View File

@ -496,8 +496,12 @@ function start_cinder() {
sudo stop tgt || true
sudo start tgt
elif is_fedora; then
# bypass redirection to systemctl during restart
sudo /sbin/service --skip-redirect tgtd restart
if [[ $DISTRO =~ (rhel6) ]]; then
sudo /sbin/service tgtd restart
else
# bypass redirection to systemctl during restart
sudo /sbin/service --skip-redirect tgtd restart
fi
elif is_suse; then
restart_service tgtd
else