2014-08-18 16:22:46 +00:00
|
|
|
#!/bin/sh
|
2014-12-17 04:02:16 +00:00
|
|
|
|
|
|
|
# Advertise the availability of the cache.
|
|
|
|
avahi-daemon -D
|
|
|
|
|
|
|
|
# Necessary because squid forks itself to an unprivileged process.
|
2014-08-18 16:22:46 +00:00
|
|
|
chown -R proxy.proxy /cachedir
|
2014-12-17 04:02:16 +00:00
|
|
|
chown proxy.proxy /dev/stdout
|
|
|
|
|
2014-08-18 16:22:46 +00:00
|
|
|
. /usr/share/squid-deb-proxy/init-common.sh
|
|
|
|
pre_start
|
2014-12-17 04:02:16 +00:00
|
|
|
post_start
|
2014-08-18 16:22:46 +00:00
|
|
|
/usr/sbin/squid3 -N -f /etc/squid-deb-proxy/squid-deb-proxy.conf
|