B #1562: sunstone-server rc handling broken (#1576)

This commit is contained in:
Abel Coronado authored and Tino Vázquez committed 2017-12-12 12:33:34 +01:00
1 parent 8065f9efc9
commit 042e64bf1d
1 file changed
+6 -4
+6 -4
View File
@@ -128,8 +128,8 @@ stop()
[ "$novnc" = "1" ] && $NOVNC_SERVER stop
if [ ! -f $SUNSTONE_PID ]; then
echo "Couldn't find sunstone-server process pid."
exit 1
echo "Couldn't find sunstone-server process pid." >&2
return 1
fi
# Kill the sunstone daemon
@@ -140,6 +140,7 @@ stop()
rm -f $SUNSTONE_PID &> /dev/null
echo "sunstone-server stopped"
return 0
}
case "$1" in
@@ -149,9 +150,10 @@ case "$1" in
;;
stop)
stop -n
exit $?
;;
restart)
stop -n
stop -n 2> /dev/null
setup
start -n
;;
@@ -163,7 +165,7 @@ case "$1" in
stop
;;
restart-sunstone)
stop
stop -n 2> /dev/null
setup
start
;;