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 stop tgt || true
|
||||||
sudo start tgt
|
sudo start tgt
|
||||||
elif is_fedora; then
|
elif is_fedora; then
|
||||||
|
if [[ $DISTRO =~ (rhel6) ]]; then
|
||||||
|
sudo /sbin/service tgtd restart
|
||||||
|
else
|
||||||
# bypass redirection to systemctl during restart
|
# bypass redirection to systemctl during restart
|
||||||
sudo /sbin/service --skip-redirect tgtd restart
|
sudo /sbin/service --skip-redirect tgtd restart
|
||||||
|
fi
|
||||||
elif is_suse; then
|
elif is_suse; then
|
||||||
restart_service tgtd
|
restart_service tgtd
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user