Browse code

Merge "fix tgt to use 'service' instead of upstart calls"

Jenkins authored on 2014/03/05 23:21:10
Showing 1 changed files
... ...
@@ -491,10 +491,7 @@ function start_cinder {
491 491
         sudo rm -f /etc/tgt/conf.d/stack.conf
492 492
         _configure_tgt_for_config_d
493 493
         if is_ubuntu; then
494
-            # tgt in oneiric doesn't restart properly if tgtd isn't running
495
-            # do it in two steps
496
-            sudo stop tgt || true
497
-            sudo start tgt
494
+            sudo service tgt restart
498 495
         elif is_fedora; then
499 496
             if [[ $DISTRO =~ (rhel6) ]]; then
500 497
                 sudo /sbin/service tgtd restart