From efe336b0ee7704b80eaaeb9f17e6189e8898f10e Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Tue, 23 Dec 2025 22:32:37 -0700 Subject: [PATCH] monitor: make sure jail is running --- usr/local/share/bastille/monitor.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/share/bastille/monitor.sh b/usr/local/share/bastille/monitor.sh index ee09edcf..ce8ae170 100644 --- a/usr/local/share/bastille/monitor.sh +++ b/usr/local/share/bastille/monitor.sh @@ -121,7 +121,7 @@ for jail in ${JAILS}; do bastille_jail_monitor="${bastille_jailsdir}/${jail}/monitor" ## iterate service(s) and check service status; restart on failure - if ! check_target_is_running "${jail}" && [ -z "${ACTION}" ] && [ -f "${bastille_jail_monitor}" ]; then + if check_target_is_running "${jail}" && [ -z "${ACTION}" ] && [ -f "${bastille_jail_monitor}" ]; then for service in $(xargs < "${bastille_jail_monitor}"); do ## check service status if ! jexec -l -U root "${jail}" service "${service}" status >/dev/null 2>/dev/null; then