python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / squid / S97squid
blob535b1d9622b3690522cd9b19187e30b8fc75a4f6
1 #!/bin/sh
3 [ -x /usr/sbin/squid ] || exit 0
4 [ -f /etc/squid.conf ] || exit 0
6 case "$1" in
7 start)
8 printf "Starting squid: "
9 if [ ! -d /var/log/squid ]; then
10 mkdir -p /var/log/squid
11 chown squid:squid /var/log/squid
13 start-stop-daemon -S -x /usr/sbin/squid
14 [ $? = 0 ] && echo "OK" || echo "FAIL"
17 stop)
18 printf "Stopping squid: "
19 /usr/sbin/squid -k shutdown
20 [ $? = 0 ] && echo "OK" || echo "FAIL"
23 reload)
24 printf "Reloading squid configuration: "
25 /usr/sbin/squid -k reconfigure
26 [ $? = 0 ] && echo "OK" || echo "FAIL"
29 restart)
30 printf "Restarting squid: "
31 /usr/sbin/squid -k restart
32 [ $? = 0 ] && echo "OK" || echo "FAIL"
36 echo "Usage: $0 {start|stop|reload|restart}"
37 exit 1
38 esac
40 exit 0