Otherwise the server will restart if you stopped it when monitoring is active.
@@ -129,6 +129,8 @@ else
fn_scriptlog "Stopped ${servername}"
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
+fi