Skip to content

Commit

Permalink
feat(monitor): check if details is running
Browse files Browse the repository at this point in the history
  • Loading branch information
dgibbs64 committed Oct 28, 2023
1 parent cfdfcc3 commit aedfa77
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions lgsm/modules/command_monitor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@ fn_monitor_check_debug() {
fi
}

fn_monitor_check_details() {
if [ "$(pgrep -fcx -u "${USER}" "/bin/bash ./${selfname} details")" != "0" ] || [ "$(pgrep -fcx -u "${USER}" "/bin/bash ./${selfname} dt")" != "0" ]; then
fn_print_dots "Checking details: "
fn_print_checking_eol
fn_print_info "Checking details: Details is running: "
fn_print_info_eol_nl
fn_script_log_pass "Checking details: Details is running"
core_exit.sh
fi
}

fn_monitor_check_starting() {
# Remove stale lockfile.
if [ -f "${lockdir}/${selfname}-starting.lock" ]; then
Expand Down Expand Up @@ -380,10 +391,11 @@ core_logs.sh
info_game.sh

# query pre-checks
fn_monitor_check_update_source
fn_monitor_check_update
fn_monitor_check_details
fn_monitor_check_backup
fn_monitor_check_debug
fn_monitor_check_update_source
fn_monitor_check_update
fn_monitor_check_monitoring
fn_monitor_check_starting
fn_monitor_check_stopping
Expand Down

0 comments on commit aedfa77

Please sign in to comment.