Merge "Don't use --skip-redirect for cinder restart on rhel6"
This commit is contained in:
commit
5d1e8bcddf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user