mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-19 08:40:44 +01:00
service: Add exit code check and return
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user