Skip to content

Commit aedfa77

Browse files
committed
feat(monitor): check if details is running
1 parent cfdfcc3 commit aedfa77

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

lgsm/modules/command_monitor.sh

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,17 @@ fn_monitor_check_debug() {
5252
fi
5353
}
5454

55+
fn_monitor_check_details() {
56+
if [ "$(pgrep -fcx -u "${USER}" "/bin/bash ./${selfname} details")" != "0" ] || [ "$(pgrep -fcx -u "${USER}" "/bin/bash ./${selfname} dt")" != "0" ]; then
57+
fn_print_dots "Checking details: "
58+
fn_print_checking_eol
59+
fn_print_info "Checking details: Details is running: "
60+
fn_print_info_eol_nl
61+
fn_script_log_pass "Checking details: Details is running"
62+
core_exit.sh
63+
fi
64+
}
65+
5566
fn_monitor_check_starting() {
5667
# Remove stale lockfile.
5768
if [ -f "${lockdir}/${selfname}-starting.lock" ]; then
@@ -380,10 +391,11 @@ core_logs.sh
380391
info_game.sh
381392

382393
# query pre-checks
383-
fn_monitor_check_update_source
384-
fn_monitor_check_update
394+
fn_monitor_check_details
385395
fn_monitor_check_backup
386396
fn_monitor_check_debug
397+
fn_monitor_check_update_source
398+
fn_monitor_check_update
387399
fn_monitor_check_monitoring
388400
fn_monitor_check_starting
389401
fn_monitor_check_stopping

0 commit comments

Comments
 (0)