From f1e31207c742b3b47a0b1bf4b1665bcc50cdeaad Mon Sep 17 00:00:00 2001 From: casjay Date: Thu, 16 Jan 2025 13:13:16 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rootfs/tmp/etc/privoxy/config rootfs/usr/local/etc/docker/init.d/03-tor-server.sh rootfs/usr/local/etc/docker/init.d/98-privoxy.sh --- rootfs/tmp/etc/privoxy/config | 1 - rootfs/usr/local/etc/docker/init.d/03-tor-server.sh | 1 + rootfs/usr/local/etc/docker/init.d/98-privoxy.sh | 6 +++--- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rootfs/tmp/etc/privoxy/config b/rootfs/tmp/etc/privoxy/config index a6da020..0926760 100644 --- a/rootfs/tmp/etc/privoxy/config +++ b/rootfs/tmp/etc/privoxy/config @@ -1,3 +1,2 @@ forward-socks5t / 127.0.0.1:9050 . -listen-address [::0]:8118 listen-address 0.0.0.0:8118 diff --git a/rootfs/usr/local/etc/docker/init.d/03-tor-server.sh b/rootfs/usr/local/etc/docker/init.d/03-tor-server.sh index f41b6c2..3e7b8bc 100755 --- a/rootfs/usr/local/etc/docker/init.d/03-tor-server.sh +++ b/rootfs/usr/local/etc/docker/init.d/03-tor-server.sh @@ -382,6 +382,7 @@ __post_execute() { done echo "End current hidden services" fi + (while :; do sleep 10 && __pgrep $EXEC_CMD_BIN >/dev/null || eval $EXEC_CMD_BIN $EXEC_CMD_ARGS >/dev/null; done &) # show exit message __banner "$postMessageEnd: Status $retVal" ) 2>"/dev/stderr" | tee -p -a "/data/logs/init.txt" & diff --git a/rootfs/usr/local/etc/docker/init.d/98-privoxy.sh b/rootfs/usr/local/etc/docker/init.d/98-privoxy.sh index eb7af6c..dd6680b 100755 --- a/rootfs/usr/local/etc/docker/init.d/98-privoxy.sh +++ b/rootfs/usr/local/etc/docker/init.d/98-privoxy.sh @@ -100,9 +100,9 @@ SERVICE_UID="0" # set the user id SERVICE_GID="0" # set the group id # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # execute command variables - keep single quotes variables will be expanded later -EXEC_CMD_BIN='privoxy' # command to execute -EXEC_CMD_ARGS='$CONF_DIR/config' # command arguments -EXEC_PRE_SCRIPT='' # execute script before +EXEC_CMD_BIN='privoxy' # command to execute +EXEC_CMD_ARGS='--no-daemon $CONF_DIR/config' # command arguments +EXEC_PRE_SCRIPT='' # execute script before # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Is this service a web server IS_WEB_SERVER="no"