diff --git a/usr/local/share/bastille/monitor.sh b/usr/local/share/bastille/monitor.sh index ce8ae170..6742aa8d 100644 --- a/usr/local/share/bastille/monitor.sh +++ b/usr/local/share/bastille/monitor.sh @@ -121,7 +121,8 @@ 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 [ -z "${ACTION}" ] && [ -f "${bastille_jail_monitor}" ]; then + check_target_is_running "${jail}" || continue 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