diff options
-rw-r--r-- | meta-openstack/recipes-support/tgt/files/tgtd.init | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-openstack/recipes-support/tgt/files/tgtd.init b/meta-openstack/recipes-support/tgt/files/tgtd.init index 52d98c3..5937ff0 100644 --- a/meta-openstack/recipes-support/tgt/files/tgtd.init +++ b/meta-openstack/recipes-support/tgt/files/tgtd.init | |||
@@ -57,11 +57,11 @@ stop () | |||
57 | RETVAL=$? | 57 | RETVAL=$? |
58 | if [ "$RETVAL" -eq 107 ] ; then | 58 | if [ "$RETVAL" -eq 107 ] ; then |
59 | if [ "$TASK" != "restart" ] ; then | 59 | if [ "$TASK" != "restart" ] ; then |
60 | exit 1 | 60 | return 1 |
61 | fi | 61 | fi |
62 | elif [ "$RETVAL" -ne 0 ] ; then | 62 | elif [ "$RETVAL" -ne 0 ] ; then |
63 | echo "Some initiators are still connected - could not stop tgtd" | 63 | echo "Some initiators are still connected - could not stop tgtd" |
64 | exit 2 | 64 | return 2 |
65 | fi | 65 | fi |
66 | echo -n | 66 | echo -n |
67 | } | 67 | } |