From 28d7528102f21cf28f8b4e4ca096eab60eb2cbf5 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Tue, 2 Dec 2025 16:26:01 -0700 Subject: [PATCH] monitor: fix jail stop check --- usr/local/share/bastille/monitor.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/share/bastille/monitor.sh b/usr/local/share/bastille/monitor.sh index a44e8904..392154c1 100644 --- a/usr/local/share/bastille/monitor.sh +++ b/usr/local/share/bastille/monitor.sh @@ -120,8 +120,8 @@ for _jail in ${JAILS}; do bastille_jail_monitor="${bastille_jailsdir}/${_jail}/monitor" - # Skip if no monitor file or stopped jail - if [ $? -eq 1 ] && { [ ! -f "${bastille_jail_monitor}" ] || ! check_target_is_running; }; then + # Skip if jail is not running or no monitor file + if ! check_target_is_running || [ ! -f "${bastille_jail_monitor}" ]; then continue fi