From 672c8242f9e4e6b5f2e77cf6b95381a4a2efc33c Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Thu, 19 Oct 2023 18:00:27 +0100 Subject: [PATCH] bug --- lgsm/modules/command_stop.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lgsm/modules/command_stop.sh b/lgsm/modules/command_stop.sh index da4788ddce..cad1fb94e3 100644 --- a/lgsm/modules/command_stop.sh +++ b/lgsm/modules/command_stop.sh @@ -23,6 +23,10 @@ fn_stop_graceful_ctrlc() { fn_print_ok "Graceful: CTRL+c: ${seconds}: " fn_print_ok_eol_nl fn_script_log_pass "Graceful: CTRL+c: OK: ${seconds} seconds" + if [ "${firstcommandname}" == "STOP" ]; then + alert="stopped" + alert.sh + fi break fi fn_sleep_time_1 @@ -53,6 +57,7 @@ fn_stop_graceful_cmd() { fn_script_log_pass "Graceful: sending \"${1}\": OK: ${seconds} seconds" if [ "${firstcommandname}" == "STOP" ]; then alert="stopped" + alert.sh fi break fi @@ -85,6 +90,7 @@ fn_stop_graceful_goldsrc() { fn_script_log_pass "Graceful: sending \"quit\": OK: ${seconds} seconds" if [ "${firstcommandname}" == "STOP" ]; then alert="stopped" + alert.sh fi } @@ -207,6 +213,7 @@ fn_stop_graceful_avorion() { fn_script_log_pass "Graceful: /save /stop: OK: ${seconds} seconds" if [ "${firstcommandname}" == "STOP" ]; then alert="stopped" + alert.sh fi break fi @@ -261,6 +268,7 @@ fn_stop_tmux() { fn_script_log_pass "Stopped ${servername}" if [ "${firstcommandname}" == "STOP" ]; then alert="stopped" + alert.sh fi else fn_print_fail_nl "Unable to stop ${servername}"