mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
parent
8065f9efc9
commit
042e64bf1d
@ -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
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user