4
0
Эх сурвалжийг харах

Fix Ctrl C in tmux

tmux was sending the -t argument into the session instead of parsing it.
Bourne-ID 7 жил өмнө
parent
commit
2ac82b9698

+ 1 - 1
lgsm/functions/command_stop.sh

@@ -14,7 +14,7 @@ fn_stop_graceful_ctrlc(){
 	fn_print_dots "Graceful: CTRL+c"
 	fn_print_dots "Graceful: CTRL+c"
 	fn_script_log_info "Graceful: CTRL+c"
 	fn_script_log_info "Graceful: CTRL+c"
 	# sends quit
 	# 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
 	# waits up to 30 seconds giving the server time to shutdown gracefuly
 	for seconds in {1..30}; do
 	for seconds in {1..30}; do
 		check_status.sh
 		check_status.sh