mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-27 16:00:51 +01:00
add initial startup delay option
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"
|
||||
@@ -60,6 +61,7 @@ bastille_start()
|
||||
for _jail in ${bastille_ordered_list}; do
|
||||
echo "Starting Bastille Container: ${_jail}"
|
||||
${command} start ${_jail}
|
||||
sleep ${bastille_startup_delay}
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user