Przeglądaj źródła

fix(monitor): log the start and stop checks under their own name (#5011)

fn_monitor_check_starting and fn_monitor_check_stopping printed
"Checking start" / "Checking stop" on screen but wrote "Checking backup"
to the script log, a leftover from copying fn_monitor_check_backup.

Fixes #5010

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Daniel Gibbs <me@danielgibbs.co.uk>
BorzakA 1 tydzień temu
rodzic
commit
6017300509
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      lgsm/modules/command_monitor.sh

+ 2 - 2
lgsm/modules/command_monitor.sh

@@ -81,7 +81,7 @@ fn_monitor_check_starting() {
 		fn_print_checking_eol
 		fn_print_info "Checking start: LinuxGSM is starting"
 		fn_print_info_eol_nl
-		fn_script_log_info "Checking backup: LinuxGSM is starting"
+		fn_script_log_info "Checking start: LinuxGSM is starting"
 		core_exit.sh
 	fi
 }
@@ -104,7 +104,7 @@ fn_monitor_check_stopping() {
 		fn_print_checking_eol
 		fn_print_info "Checking stop: LinuxGSM is stopping"
 		fn_print_info_eol_nl
-		fn_script_log_info "Checking backup: LinuxGSM is stopping"
+		fn_script_log_info "Checking stop: LinuxGSM is stopping"
 		core_exit.sh
 	fi
 }