From 3f32fd1864b3910b299be882b6df81d6de876720 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Sun, 22 Jun 2025 11:34:33 -0600 Subject: [PATCH] service: Add exit code check and return --- usr/local/share/bastille/service.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usr/local/share/bastille/service.sh b/usr/local/share/bastille/service.sh index c6322e95..ca8ff9d3 100644 --- a/usr/local/share/bastille/service.sh +++ b/usr/local/share/bastille/service.sh @@ -102,6 +102,8 @@ for _jail in ${JAILS}; do info "\n[${_jail}]:" jexec -l "${_jail}" /usr/sbin/service "$@" + + bastille_check_exit_code "${_jail}" "$?" ) & @@ -109,3 +111,5 @@ for _jail in ${JAILS}; do done wait + +bastille_return_exit_code