Initial commit for subshell parallel mode

This commit is contained in:
tschettervictor
2025-05-04 12:11:16 -06:00
parent 22aa1b1e4e
commit 39ed1aaec6
18 changed files with 197 additions and 136 deletions

View File

@@ -91,6 +91,8 @@ set_target "${TARGET}"
for _jail in ${JAILS}; do
(
# Validate jail state
check_target_is_running "${_jail}" || if [ "${AUTO}" -eq 1 ]; then
bastille start "${_jail}"
@@ -123,7 +125,12 @@ for _jail in ${JAILS}; do
RETURN=$(($RETURN+$ERROR_CODE))
fi
)
bastille_running_jobs "${bastille_process_limit}"
done
wait
# Check when a command is executed in all running jails. (bastille cmd ALL ...)
if [ "${COUNT}" -gt 1 ] && [ "${RETURN}" -gt 0 ]; then