a86b838f19
- initialize_cache_if_needed.sh, squid_dir.sed: Initialize cache directory on startup if it is missing. Move scripts out of systemd service file and into individual files. (bnc#1030421) OBS-URL: https://build.opensuse.org/request/show/482004 OBS-URL: https://build.opensuse.org/package/show/server:proxy/squid?expand=0&rev=117
18 lines
526 B
Desktop File
18 lines
526 B
Desktop File
[Unit]
|
|
Description=Squid caching proxy
|
|
After=network.target named.service nss-lookup.service
|
|
|
|
[Service]
|
|
Type=forking
|
|
EnvironmentFile=-/etc/sysconfig/squid
|
|
ExecStartPre=%{_libdir}/squid/initialize_cache_if_needed.sh
|
|
ExecStart=/usr/sbin/squid -F $SQUID_START_OPTIONS -f /etc/squid/squid.conf
|
|
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
|
|
PIDFile=/run/squid.pid
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|