mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
9 lines
234 B
Bash
Executable file
9 lines
234 B
Bash
Executable file
#!/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
|