mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2025-01-08 12:07:37 +08:00
change lock file name
This commit is contained in:
parent
5607a547c0
commit
c0ba7219fd
@ -110,7 +110,7 @@ fn_monitor_check_stopping() {
|
||||
}
|
||||
|
||||
fn_monitor_check_restart_request() {
|
||||
if [ -f "${lockdir}/${selfname}-restart-request.lock" ]; then
|
||||
if [ -f "${lockdir}/${selfname}-stop-request.lock" ]; then
|
||||
fn_print_dots "Checking restart: "
|
||||
fn_print_checking_eol
|
||||
fn_print_info "Checking restart: Restart requested: "
|
||||
|
@ -20,11 +20,11 @@ fn_stop_players_online() {
|
||||
if [ -n "${gdplayers}" ] && [ "${gdplayers}" -ne 0 ]; then
|
||||
fn_print_info_nl "Server will not stop while ${gdplayers} players are on the server"
|
||||
fn_script_log_info "Server will not stop while ${gdplayers} players are on the server"
|
||||
date '+%s' > "${lockdir:?}/${selfname}-restart-request.lock"
|
||||
date '+%s' > "${lockdir:?}/${selfname}-stop-request.lock"
|
||||
core_exit.sh
|
||||
else
|
||||
if [ -f "${lockdir:?}/${selfname}-restart-request.lock" ]; then
|
||||
rm -f "${lockdir:?}/${selfname}-restart-request.lock"
|
||||
if [ -f "${lockdir:?}/${selfname}-stop-request.lock" ]; then
|
||||
rm -f "${lockdir:?}/${selfname}-stop-request.lock"
|
||||
fi
|
||||
break
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user