From 061aae45790eb06e1e6a00c20f4deee60477971f Mon Sep 17 00:00:00 2001 From: Zach Laster Date: Fri, 5 Dec 2014 12:38:37 +0200 Subject: [PATCH] Adds return values to the startup function The start function used to have return values to indicate success, which is used further down to control the start up of the monitor. Presently, I don't think that the monitor is started due to these returns being missing. --- script/minecraft | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script/minecraft b/script/minecraft index 4a4b0a0..a36bc37 100644 --- a/script/minecraft +++ b/script/minecraft @@ -63,6 +63,7 @@ is_running() { mc_start() { if is_running; then echo "Tried to start but $SERVICE was already running!" + return 1 else echo "$SERVICE was not running... starting." @@ -84,8 +85,10 @@ mc_start() { echo "$SERVICE is now running." echo "$javapid" > $MCPATH/java.pid echo "$screenpid.mc$PORT" > $MCPATH/screen.name + return 0 else echo "Could not start $SERVICE." + return 1 fi fi }