Merge pull request #556 from BastilleBSD/start_stop_order

fixes #389 regarding shutdown order
This commit is contained in:
Christer Edwards
2022-11-01 17:24:44 -06:00
committed by GitHub

View File

@@ -51,7 +51,9 @@ bastille_stop()
local _jail
for _jail in ${bastille_list}; do
## reverse order of list for shutdown ## fixes #389
bastille_revlist=$(echo "${bastille_list}" | awk '{ for (i=NF; i>1; i--) printf("%s ",$i); print $1; }')
for _jail in ${bastille_revlist}; do
echo "Stopping Bastille Container: ${_jail}"
${command} stop ${_jail}
done