mirror of
https://github.com/hackacad/bastille.git
synced 2026-01-04 03:33:41 +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_conf:="/usr/local/etc/bastille/bastille.conf"}
|
||||||
: ${bastille_list:="ALL"}
|
: ${bastille_list:="ALL"}
|
||||||
: ${bastille_rcorder:="NO"}
|
: ${bastille_rcorder:="NO"}
|
||||||
|
: ${bastille_startup_delay:=0}
|
||||||
|
|
||||||
command=/usr/local/bin/${name}
|
command=/usr/local/bin/${name}
|
||||||
start_cmd="bastille_start"
|
start_cmd="bastille_start"
|
||||||
@@ -58,6 +59,7 @@ bastille_start()
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
for _jail in ${bastille_ordered_list}; do
|
for _jail in ${bastille_ordered_list}; do
|
||||||
|
sleep ${bastille_startup_delay}
|
||||||
echo "Starting Bastille Container: ${_jail}"
|
echo "Starting Bastille Container: ${_jail}"
|
||||||
${command} start ${_jail}
|
${command} start ${_jail}
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user