Move squid process to pid 1 for better extinction

This commit is contained in:
Fred 2021-11-02 10:07:12 +00:00
parent 3ed66bd944
commit c16f517e85

3
run.sh
View File

@ -36,5 +36,6 @@ done
mkdir /tmp/empty
sleep 20 && find /var/cache/squid/* -maxdepth 0 -type d $LIMIT -exec rsync -a -v --delete /tmp/empty/ {}/ \; && rm -d /var/cache/squid/* 2>/dev/null &
squid -N -n $HOSTNAME
# Exec swicth squid to pid 1
exec squid -N -n $HOSTNAME