Skip to content

Commit

Permalink
bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dgibbs64 committed Oct 19, 2023
1 parent bac64be commit 672c824
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lgsm/modules/command_stop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
}

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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}"
Expand Down

0 comments on commit 672c824

Please sign in to comment.