the comments in here were largely about oneric, which we don't
support any more. service is installed in a precise environment,
and will support debian and the upcoming transition to systemd
better, so use that instead.
Change-Id: If15493549a8c93a7387df9b3bba31443aed46995
| ... | ... |
@@ -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 |