mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-23 10:40:43 +01:00
Merge pull request #844 from pswilde/patch-1
Add an option to invoke a startup delay between starting each jail
This commit is contained in:
@@ -32,6 +32,7 @@ rcvar=${name}_enable
|
||||
: ${bastille_conf:="/usr/local/etc/bastille/bastille.conf"}
|
||||
: ${bastille_list:="ALL"}
|
||||
: ${bastille_rcorder:="NO"}
|
||||
: ${bastille_startup_delay:=0}
|
||||
|
||||
command=/usr/local/bin/${name}
|
||||
start_cmd="bastille_start"
|
||||
@@ -58,6 +59,7 @@ bastille_start()
|
||||
fi
|
||||
|
||||
for _jail in ${bastille_ordered_list}; do
|
||||
sleep ${bastille_startup_delay}
|
||||
echo "Starting Bastille Container: ${_jail}"
|
||||
${command} start ${_jail}
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user