Browse Source
fix(stop) stop will clear tmux text before entering stop command (#3142)
Tmux will ENTER before using stop command to clear any text entered in teh console
pull/3147/head
unknowntrojan
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
lgsm/functions/command_stop.sh
|
@ -43,7 +43,7 @@ fn_stop_graceful_cmd(){ |
|
|
fn_print_dots "Graceful: sending \"${1}\"" |
|
|
fn_print_dots "Graceful: sending \"${1}\"" |
|
|
fn_script_log_info "Graceful: sending \"${1}\"" |
|
|
fn_script_log_info "Graceful: sending \"${1}\"" |
|
|
# Sends specific stop command. |
|
|
# Sends specific stop command. |
|
|
tmux send -t "${sessionname}" "${1}" ENTER > /dev/null 2>&1 |
|
|
tmux send -t "${sessionname}" ENTER "${1}" ENTER > /dev/null 2>&1 |
|
|
# Waits up to ${seconds} seconds giving the server time to shutdown gracefully. |
|
|
# Waits up to ${seconds} seconds giving the server time to shutdown gracefully. |
|
|
for ((seconds=1; seconds<=${2}; seconds++)); do |
|
|
for ((seconds=1; seconds<=${2}; seconds++)); do |
|
|
check_status.sh |
|
|
check_status.sh |
|
|