bug #1922: stop novnc when sunstone does not start

This commit is contained in:
Javi Fontan committed 2013-04-25 17:57:51 +02:00
1 parent d30b0f1bd1
commit 439dc21513
1 file changed
+2
+2
View File
@@ -82,6 +82,7 @@ start()
if [ $? -ne 0 ]; then
echo "Error executing sunstone-server."
echo "Check $SUNSTONE_LOG_ERROR and $SUNSTONE_LOG for more information"
$NOVNC_SERVER stop
exit 1
else
echo $LASTPID > $SUNSTONE_PID
@@ -93,6 +94,7 @@ start()
if [ $? -ne 0 ]; then
echo "Error executing sunstone-server."
echo "Check $SUNSTONE_LOG_ERROR and $SUNSTONE_LOG for more information"
$NOVNC_SERVER stop
exit 1
fi