2012-10-22 21:07:11 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Squid caching proxy
|
2013-03-24 14:45:57 +01:00
|
|
|
After=network.target named.service nss-lookup.service
|
2012-10-22 21:07:11 +02:00
|
|
|
|
|
|
|
[Service]
|
2013-03-24 14:45:57 +01:00
|
|
|
Type=forking
|
|
|
|
EnvironmentFile=-/etc/sysconfig/squid
|
|
|
|
ExecStartPre=/bin/sh -c "test -d \"`sed -n 's/^cache_dir\s\+[[:alnum:]]\+\s\+\([[:graph:]\/]\+\)\s.*/\1/p' /etc/squid/squid.conf | sed '1 q'`/00\" || /usr/sbin/squid -z -F -N -S -f /etc/squid/squid.conf"
|
2013-03-24 22:22:31 +01:00
|
|
|
ExecStart=/usr/sbin/squid -F $SQUID_START_OPTIONS -f /etc/squid/squid.conf
|
2013-03-24 14:45:57 +01:00
|
|
|
ExecReload=/usr/sbin/squid -F $SQUID_START_OPTIONS -f /etc/squid/squid.conf -k reconfigure
|
|
|
|
ExecStop=/usr/sbin/squid -F -f /etc/squid/squid.conf -k shutdown
|
|
|
|
LimitNOFILE=4096
|
2014-03-28 19:49:46 +01:00
|
|
|
PIDFile=/run/squid.pid
|
2012-10-22 21:07:11 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
2013-03-24 22:22:31 +01:00
|
|
|
|