From d5d4fdd58988af54e24fbd725028c8a064ebcea4 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Sun, 22 Jun 2025 11:35:09 -0600 Subject: [PATCH] sysrc: Add exit code check and return --- usr/local/share/bastille/sysrc.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/usr/local/share/bastille/sysrc.sh b/usr/local/share/bastille/sysrc.sh index bccd72c5..8f0e0763 100644 --- a/usr/local/share/bastille/sysrc.sh +++ b/usr/local/share/bastille/sysrc.sh @@ -103,9 +103,13 @@ for _jail in ${JAILS}; do jexec -l "${_jail}" /usr/sbin/sysrc "$@" + bastille_check_exit_code "${_jail}" "$?" + ) & bastille_running_jobs "${bastille_process_limit}" done -wait \ No newline at end of file +wait + +bastille_return_exit_code