Permalink
Browse files

Fix Ctrl C in tmux

tmux was sending the -t argument into the session instead of parsing it.
  • Loading branch information...
Bourne-ID committed Oct 4, 2018
1 parent d6847aa commit 2ac82b969887bab47040f2269c572778cdc2a96d
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 -t "${servicename}" C-c > /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

0 comments on commit 2ac82b9

Please sign in to comment.