mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 19:32:56 +09:00
1 parent
8065f9efc9
commit
042e64bf1d
1 file changed
+6
-4
@@ -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
|
||||
;;
|
||||
|
||||
Reference in new issue
Block a user