From 4c2d6774a24daebe5837286e709e2401edb895d5 Mon Sep 17 00:00:00 2001 From: Paul Wilde <31094984+pswilde@users.noreply.github.com> Date: Thu, 13 Feb 2025 14:00:56 +0000 Subject: [PATCH 1/2] add initial startup delay option --- usr/local/etc/rc.d/bastille | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr/local/etc/rc.d/bastille b/usr/local/etc/rc.d/bastille index 9322c0991..be5c1b0ef 100755 --- a/usr/local/etc/rc.d/bastille +++ b/usr/local/etc/rc.d/bastille @@ -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 } From 12e0782bb7aa331fc752a71de7a2814a1bb738fe Mon Sep 17 00:00:00 2001 From: Paul Wilde <31094984+pswilde@users.noreply.github.com> Date: Thu, 13 Feb 2025 20:01:13 +0000 Subject: [PATCH 2/2] Put sleep delay before starting jail instead of after --- usr/local/etc/rc.d/bastille | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/etc/rc.d/bastille b/usr/local/etc/rc.d/bastille index be5c1b0ef..154209867 100755 --- a/usr/local/etc/rc.d/bastille +++ b/usr/local/etc/rc.d/bastille @@ -59,9 +59,9 @@ bastille_start() fi for _jail in ${bastille_ordered_list}; do + sleep ${bastille_startup_delay} echo "Starting Bastille Container: ${_jail}" ${command} start ${_jail} - sleep ${bastille_startup_delay} done }