From 5dfffbf28d1d3f91ac4deffa13078121dfda9b7f Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Tue, 2 Dec 2025 15:57:23 -0700 Subject: [PATCH] monitor: continue on stopped jail --- usr/local/share/bastille/monitor.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr/local/share/bastille/monitor.sh b/usr/local/share/bastille/monitor.sh index 1a1964ba..a44e8904 100644 --- a/usr/local/share/bastille/monitor.sh +++ b/usr/local/share/bastille/monitor.sh @@ -95,10 +95,10 @@ case "${1}" in status) [ "$#" -eq 1 ] || usage if [ -f "${bastille_monitor_cron_path}" ]; then - info "\nBastille Monitor: Active\n" + info "\nBastille Monitor Status: Active\n" exit 0 else - info "\nBastille Monitor: Inactive\n" + info "\nBastille Monitor Status: Inactive\n" exit 1 fi ;; @@ -120,8 +120,8 @@ for _jail in ${JAILS}; do bastille_jail_monitor="${bastille_jailsdir}/${_jail}/monitor" - ## skip if no monitor file - if [ $? -eq 1 ] && [ ! -f "${bastille_jail_monitor}" ]; then + # Skip if no monitor file or stopped jail + if [ $? -eq 1 ] && { [ ! -f "${bastille_jail_monitor}" ] || ! check_target_is_running; }; then continue fi