1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

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

This commit is contained in:
Abel Coronado 2017-12-12 12:33:34 +01:00 committed by Tino Vázquez
parent 8065f9efc9
commit 042e64bf1d

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
;;