From 3b57829ece7aa231770b640afd6da961dae2fc1c Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Wed, 26 Feb 2014 14:52:02 +1100 Subject: [PATCH] Don't use --skip-redirect for cinder restart on rhel6 RHEL6 doesn't support this flag so the restart fails. Not exactly sure why it is required, seems unchagned from the initial commit 67787e6b4c6f31388cbee6d83b67371b31c443d4 (found running stack.sh with -e per [1]) [1] https://review.openstack.org/#/c/71996/ Change-Id: Ib34c3663409d7b96b932286cb5a6974e940075d3 --- lib/cinder | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/cinder b/lib/cinder index c8c90c098d..e8f30b683c 100644 --- a/lib/cinder +++ b/lib/cinder @@ -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