diff options
Diffstat (limited to 'staging/squid/squid.cron')
-rw-r--r-- | staging/squid/squid.cron | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/staging/squid/squid.cron b/staging/squid/squid.cron new file mode 100644 index 000000000..c78e51105 --- /dev/null +++ b/staging/squid/squid.cron @@ -0,0 +1,9 @@ +#!/bin/sh + +# exit without error if no pidfile exists +{ read pid </run/squid.pid; } 2>/dev/null || exit 0 + +# make sure found PID really is a squid process +if [ /proc/$pid/exec -ef /usr/sbin/squid ]; then + /usr/sbin/squid -k rotate +fi |