Sfoglia il codice sorgente

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
unknowntrojan 5 anni fa
parent
commit
2f5ee83ca1
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      lgsm/functions/command_stop.sh

+ 1 - 1
lgsm/functions/command_stop.sh

@@ -43,7 +43,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 "${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.
 	for ((seconds=1; seconds<=${2}; seconds++)); do
 		check_status.sh