Merge "fix tgt to use 'service' instead of upstart calls"
This commit is contained in:
commit
4981bd7532
@ -491,10 +491,7 @@ function start_cinder {
|
|||||||
sudo rm -f /etc/tgt/conf.d/stack.conf
|
sudo rm -f /etc/tgt/conf.d/stack.conf
|
||||||
_configure_tgt_for_config_d
|
_configure_tgt_for_config_d
|
||||||
if is_ubuntu; then
|
if is_ubuntu; then
|
||||||
# tgt in oneiric doesn't restart properly if tgtd isn't running
|
sudo service tgt restart
|
||||||
# do it in two steps
|
|
||||||
sudo stop tgt || true
|
|
||||||
sudo start tgt
|
|
||||||
elif is_fedora; then
|
elif is_fedora; then
|
||||||
if [[ $DISTRO =~ (rhel6) ]]; then
|
if [[ $DISTRO =~ (rhel6) ]]; then
|
||||||
sudo /sbin/service tgtd restart
|
sudo /sbin/service tgtd restart
|
||||||
|
Loading…
Reference in New Issue
Block a user