From 439dc21513e3bc317eb1072cf73aee79f7e57126 Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Thu, 25 Apr 2013 17:57:51 +0200 Subject: [PATCH] bug #1922: stop novnc when sunstone does not start --- src/sunstone/bin/sunstone-server | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sunstone/bin/sunstone-server b/src/sunstone/bin/sunstone-server index 5ad2b8b571..fdc8cf5161 100755 --- a/src/sunstone/bin/sunstone-server +++ b/src/sunstone/bin/sunstone-server @@ -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