summaryrefslogtreecommitdiff
path: root/community/squid/squid.cron
blob: 7425df8942daffdd8a2f58c157fd2308a6c3b489 (plain)
1
2
3
4
5
6
7
8
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/bin/squid ]; then
  /usr/bin/squid -k rotate
fi