1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-04-01 06:50:25 +03:00

feature : novnc did not start in centos sunstone script

Also some whitespace fixing
This commit is contained in:
Javi Fontan 2014-06-11 15:34:05 +02:00
parent 82c2885928
commit 9213b474de

@ -45,14 +45,14 @@ start() {
daemon --user oneadmin $SUNSTONE_BIN start-sunstone
RETVAL=$?
echo
echo
[ $RETVAL -eq 0 ] && {
touch $LOCKFILE
echo $(ps -ef|grep su[n]stone-server | awk '{print $2}') > $PID_FILE
}
touch $LOCKFILE
echo $(ps -ef|grep su[n]stone-server | awk '{print $2}') > $PID_FILE
service opennebula-novnc start
}
return $RETVAL
service opennebula-novnc start
}
stop() {
@ -63,8 +63,8 @@ stop() {
daemon --user oneadmin $SUNSTONE_BIN stop-sunstone
RETVAL=$?
[ $RETVAL -eq 0 ] && success || failure
echo
[ $RETVAL -eq 0 ] && success || failure
echo
[ $RETVAL -eq 0 ] && rm -f $LOCKFILE $PID_FILE
return $RETVAL