squid/squid.service

18 lines
670 B
SYSTEMD
Raw Normal View History

[Unit]
Description=Squid caching proxy
Accepting request 159652 from home:bruno_friedmann:branches:server:proxy Rework the systemd squid.service to make it able to intialize cache directory (squid -z) fixing bnc#802635 Removing the unneeded bash wrapper Upgrade to bugfixes upstream release 3.2.9 - New revision for squid.service (using only sed) handle multiple cache_dir line Added sed as require - Packaging : fixed systemd squid.service - Rework on squid.service ExecStartPre line remove dependency on unfunctionnal wrapper - Fix bnc#802635 (creating cache struture fail on first call) - Fixed Type=forking and remove the use off -N (non daemon flag) - Fixed missing pid file - Structural : add all -k to end of Exec/Stop line - Ulimit : Added LimitNOFile=4096 ( same value as in /etc/sysconfig) but there's no way to decode dynamically /etc/sysconfig - Remove syslog.target ( no need anymore : advise from fcrozat ) - Clean up squid_cache_build.sh - Changes to squid-3.2.9 (12 Mar 2013): - Regression fix: Accept-Language header parse - Bug 3673: Silence 'Failed to select source' messages - Fix authentication headers sent on peer digest requests - Fix build error on Solaris, OpenIndiana, Omnios - Changes to squid-3.2.8 (02 Mar 2013): - Bug 3767: tcp_outgoing_tos/mark ACLs do not obey acl_uses_indirect_client - Bug 3763: diskd Error: no filename in shm buffer - Bug 3752: objects that cannot be cached in memory are not cached on disk - Bug 3753: Removes the domain from the cache_peer server pconn key - Bug 3749: IDENT lookup using wrong ports to identify the user - Bug 3723: tcp_outgoing_tos/mark broken for CONNECT requests - Bug 3686: cache_dir max-size default fails - Bug 3515: crash in FtpStateData::ftpTimeout - Bug 3329: Quieten orphan Comm::Connection messages - Make squid -z for cache_dir rock preserve the rock DB OBS-URL: https://build.opensuse.org/request/show/159652 OBS-URL: https://build.opensuse.org/package/show/server:proxy/squid?expand=0&rev=34
2013-03-24 14:45:57 +01:00
After=network.target named.service nss-lookup.service
[Service]
Accepting request 159652 from home:bruno_friedmann:branches:server:proxy Rework the systemd squid.service to make it able to intialize cache directory (squid -z) fixing bnc#802635 Removing the unneeded bash wrapper Upgrade to bugfixes upstream release 3.2.9 - New revision for squid.service (using only sed) handle multiple cache_dir line Added sed as require - Packaging : fixed systemd squid.service - Rework on squid.service ExecStartPre line remove dependency on unfunctionnal wrapper - Fix bnc#802635 (creating cache struture fail on first call) - Fixed Type=forking and remove the use off -N (non daemon flag) - Fixed missing pid file - Structural : add all -k to end of Exec/Stop line - Ulimit : Added LimitNOFile=4096 ( same value as in /etc/sysconfig) but there's no way to decode dynamically /etc/sysconfig - Remove syslog.target ( no need anymore : advise from fcrozat ) - Clean up squid_cache_build.sh - Changes to squid-3.2.9 (12 Mar 2013): - Regression fix: Accept-Language header parse - Bug 3673: Silence 'Failed to select source' messages - Fix authentication headers sent on peer digest requests - Fix build error on Solaris, OpenIndiana, Omnios - Changes to squid-3.2.8 (02 Mar 2013): - Bug 3767: tcp_outgoing_tos/mark ACLs do not obey acl_uses_indirect_client - Bug 3763: diskd Error: no filename in shm buffer - Bug 3752: objects that cannot be cached in memory are not cached on disk - Bug 3753: Removes the domain from the cache_peer server pconn key - Bug 3749: IDENT lookup using wrong ports to identify the user - Bug 3723: tcp_outgoing_tos/mark broken for CONNECT requests - Bug 3686: cache_dir max-size default fails - Bug 3515: crash in FtpStateData::ftpTimeout - Bug 3329: Quieten orphan Comm::Connection messages - Make squid -z for cache_dir rock preserve the rock DB OBS-URL: https://build.opensuse.org/request/show/159652 OBS-URL: https://build.opensuse.org/package/show/server:proxy/squid?expand=0&rev=34
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"
ExecStart=/usr/sbin/squid -F $SQUID_START_OPTIONS -f /etc/squid/squid.conf
Accepting request 159652 from home:bruno_friedmann:branches:server:proxy Rework the systemd squid.service to make it able to intialize cache directory (squid -z) fixing bnc#802635 Removing the unneeded bash wrapper Upgrade to bugfixes upstream release 3.2.9 - New revision for squid.service (using only sed) handle multiple cache_dir line Added sed as require - Packaging : fixed systemd squid.service - Rework on squid.service ExecStartPre line remove dependency on unfunctionnal wrapper - Fix bnc#802635 (creating cache struture fail on first call) - Fixed Type=forking and remove the use off -N (non daemon flag) - Fixed missing pid file - Structural : add all -k to end of Exec/Stop line - Ulimit : Added LimitNOFile=4096 ( same value as in /etc/sysconfig) but there's no way to decode dynamically /etc/sysconfig - Remove syslog.target ( no need anymore : advise from fcrozat ) - Clean up squid_cache_build.sh - Changes to squid-3.2.9 (12 Mar 2013): - Regression fix: Accept-Language header parse - Bug 3673: Silence 'Failed to select source' messages - Fix authentication headers sent on peer digest requests - Fix build error on Solaris, OpenIndiana, Omnios - Changes to squid-3.2.8 (02 Mar 2013): - Bug 3767: tcp_outgoing_tos/mark ACLs do not obey acl_uses_indirect_client - Bug 3763: diskd Error: no filename in shm buffer - Bug 3752: objects that cannot be cached in memory are not cached on disk - Bug 3753: Removes the domain from the cache_peer server pconn key - Bug 3749: IDENT lookup using wrong ports to identify the user - Bug 3723: tcp_outgoing_tos/mark broken for CONNECT requests - Bug 3686: cache_dir max-size default fails - Bug 3515: crash in FtpStateData::ftpTimeout - Bug 3329: Quieten orphan Comm::Connection messages - Make squid -z for cache_dir rock preserve the rock DB OBS-URL: https://build.opensuse.org/request/show/159652 OBS-URL: https://build.opensuse.org/package/show/server:proxy/squid?expand=0&rev=34
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
PIDFile=/run/squid.pid
[Install]
WantedBy=multi-user.target