From 309ee91730858e43085f93d4473e4458876107d4 Mon Sep 17 00:00:00 2001 From: Marvin Lehmann Date: Tue, 26 May 2015 16:21:49 +0200 Subject: [PATCH] Added lock file removal for all servers Otherwise the server will restart if you stopped it when monitoring is active. --- functions/fn_stop | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions/fn_stop b/functions/fn_stop index 5f5a79b20..e0c67e54a 100644 --- a/functions/fn_stop +++ b/functions/fn_stop @@ -129,6 +129,8 @@ else fn_scriptlog "Stopped ${servername}" fi fi + # Remove lock file + rm -f "${rootdir}/${lockselfname}" sleep 1 echo -en "\n" } @@ -137,4 +139,4 @@ if [ "${gamename}" == "Teamspeak 3" ]; then fn_stop_teamspeak3 else fn_stop_tmux -fi \ No newline at end of file +fi