1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-24 21:34:01 +03:00

don't fail too hard. the user will see an error anyway

This commit is contained in:
Arnold Bechtoldt 2014-05-04 10:00:20 +02:00
parent d9ea4da24e
commit 60c3d6d2c2
2 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@ SCRIPTNAME=/etc/init.d/opennebula-sunstone
# #
do_start() do_start()
{ {
service opennebula-novnc start || exit $? service opennebula-novnc start
mkdir -p /var/run/one /var/lock/one /var/log/one mkdir -p /var/run/one /var/lock/one /var/log/one
chown oneadmin /var/run/one /var/lock/one /var/log/one chown oneadmin /var/run/one /var/lock/one /var/log/one
su oneadmin -s /bin/sh -c "$DAEMON start" su oneadmin -s /bin/sh -c "$DAEMON start"
@ -45,7 +45,7 @@ do_start()
do_stop() do_stop()
{ {
su oneadmin -s /bin/sh -c "$DAEMON stop" su oneadmin -s /bin/sh -c "$DAEMON stop"
service opennebula-novnc stop || exit $? service opennebula-novnc stop
} }
case "$1" in case "$1" in

View File

@ -33,7 +33,7 @@ SCRIPTNAME=/etc/init.d/opennebula-sunstone
# #
do_start() do_start()
{ {
service opennebula-novnc start || exit $? service opennebula-novnc start
mkdir -p /var/run/one /var/lock/one /var/log/one mkdir -p /var/run/one /var/lock/one /var/log/one
chown oneadmin /var/run/one /var/lock/one /var/log/one chown oneadmin /var/run/one /var/lock/one /var/log/one
su oneadmin -s /bin/sh -c "$DAEMON start" su oneadmin -s /bin/sh -c "$DAEMON start"
@ -45,7 +45,7 @@ do_start()
do_stop() do_stop()
{ {
su oneadmin -s /bin/sh -c "$DAEMON stop" su oneadmin -s /bin/sh -c "$DAEMON stop"
service opennebula-novnc stop || exit $? service opennebula-novnc stop
} }
case "$1" in case "$1" in