diff --git a/lgsm/functions/command_stop.sh b/lgsm/functions/command_stop.sh index d8d13f9dc..cc9ea471b 100644 --- a/lgsm/functions/command_stop.sh +++ b/lgsm/functions/command_stop.sh @@ -14,7 +14,7 @@ fn_stop_graceful_ctrlc(){ fn_print_dots "Graceful: CTRL+c" fn_script_log_info "Graceful: CTRL+c" # sends quit - tmux send-keys C-c -t="${servicename}" > /dev/null 2>&1 + tmux send-keys C-c -t "${servicename}" > /dev/null 2>&1 # waits up to 30 seconds giving the server time to shutdown gracefuly for seconds in {1..30}; do check_status.sh @@ -44,7 +44,7 @@ fn_stop_graceful_cmd(){ fn_print_dots "Graceful: sending \"${1}\"" fn_script_log_info "Graceful: sending \"${1}\"" # sends specific stop command - tmux send -t="${servicename}" "${1}" ENTER > /dev/null 2>&1 + tmux send -t "${servicename}" "${1}" ENTER > /dev/null 2>&1 # waits up to given seconds giving the server time to shutdown gracefully for ((seconds=1; seconds<=${2}; seconds++)); do check_status.sh @@ -75,7 +75,7 @@ fn_stop_graceful_goldsource(){ fn_print_dots "Graceful: sending \"quit\"" fn_script_log_info "Graceful: sending \"quit\"" # sends quit - tmux send -t="${servicename}" quit ENTER > /dev/null 2>&1 + tmux send -t "${servicename}" quit ENTER > /dev/null 2>&1 # waits 3 seconds as goldsource servers restart with the quit command for seconds in {1..3}; do sleep 1