🗃️ Committing everything that changed 🗃️

rootfs/usr/local/etc/docker/init.d/03-tor-server.sh
rootfs/usr/local/etc/docker/init.d/zz-nginx.sh
This commit is contained in:
casjay
2025-09-20 07:05:34 -04:00
parent 07f9a0f930
commit a0749a051c
2 changed files with 9 additions and 4 deletions

View File

@@ -376,7 +376,7 @@ __post_execute() {
( (
# commands to execute # commands to execute
while :; do while :; do
if pgrep unbound >/dev/null 2>&1; then if __pgrep unbound >/dev/null 2>&1; then
break break
else else
sleep 10 sleep 10

View File

@@ -268,10 +268,15 @@ __update_conf_files() {
fi fi
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# define actions # define actions
while :; do # Wait for tor services to complete initialization (with timeout)
echo "waiting for tor to start" local wait_count=0
[ -f "/tmp/init_tor_services" ] && sleep 30 || break local max_wait=10
while [ -f "/tmp/init_tor_services" ] && [ $wait_count -lt $max_wait ]; do
echo "Waiting for tor services to complete initialization... ($wait_count/$max_wait)"
sleep 10
wait_count=$((wait_count + 1))
done done
[ $wait_count -ge $max_wait ] && echo "⚠️ Timeout waiting for tor services, continuing anyway"
echo "The tor server seems to have started " echo "The tor server seems to have started "
for site in "/run/tor/sites"/*; do for site in "/run/tor/sites"/*; do
onion_site="$(basename -- $site)" onion_site="$(basename -- $site)"