mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2025-01-08 12:07:37 +08:00
fix(start): lock file created before check
Even if check fails a lock file will be generated to allow monitor to run
This commit is contained in:
parent
82e5da4b1d
commit
a3c5a847e5
@ -181,13 +181,13 @@ fn_start_tmux() {
|
||||
echo -en "\n"
|
||||
}
|
||||
|
||||
check.sh
|
||||
|
||||
# If user ran the start command monitor will become enabled.
|
||||
if [ "${firstcommandname}" == "START" ] || [ "${firstcommandname}" == "RESTART" ]; then
|
||||
date '+%s' > "${lockdir:?}/${selfname}-monitoring.lock"
|
||||
fi
|
||||
|
||||
check.sh
|
||||
|
||||
# If the server already started dont start again.
|
||||
if [ "${status}" != "0" ]; then
|
||||
fn_print_dots "${servername}"
|
||||
|
Loading…
Reference in New Issue
Block a user