Browse Source

Added lock file removal for all servers

Otherwise the server will restart if you stopped it when monitoring is active.
Marvin Lehmann 11 years ago
parent
commit
309ee91730
1 changed files with 3 additions and 1 deletions
  1. 3 1
      functions/fn_stop

+ 3 - 1
functions/fn_stop

@@ -129,6 +129,8 @@ else
         fn_scriptlog "Stopped ${servername}"
         fn_scriptlog "Stopped ${servername}"
     fi
     fi
 fi
 fi
+    # Remove lock file
+    rm -f "${rootdir}/${lockselfname}"
     sleep 1
     sleep 1
     echo -en "\n"
     echo -en "\n"
 }
 }
@@ -137,4 +139,4 @@ if [ "${gamename}" == "Teamspeak 3" ]; then
     fn_stop_teamspeak3
     fn_stop_teamspeak3
 else
 else
     fn_stop_tmux
     fn_stop_tmux
-fi
+fi