diff --git a/squid.changes b/squid.changes index 53362ab..35a11a0 100644 --- a/squid.changes +++ b/squid.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Aug 29 08:25:53 UTC 2022 - chris@computersalat.de + +- fix PIDFile + * NOT needed in service file + (squid.service: Can't open PID file /run/squid.pid) + * placed to tmpfilesdir + ------------------------------------------------------------------- Wed Jun 29 11:31:00 UTC 2022 - Stefan Schubert diff --git a/squid.service b/squid.service index 4fc3486..b5523df 100644 --- a/squid.service +++ b/squid.service @@ -22,7 +22,6 @@ ExecStartPre=%{_libexecdir}/squid/initialize_cache_if_needed.sh ExecStart=/usr/sbin/squid -FC ExecReload=/usr/bin/kill -HUP $MAINPID LimitNOFILE=4096 -PIDFile=/run/squid.pid [Install] WantedBy=multi-user.target diff --git a/squid.spec b/squid.spec index be1c80a..31e0349 100644 --- a/squid.spec +++ b/squid.spec @@ -121,7 +121,7 @@ export LDFLAGS="-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro,-z,now -pie" --datadir=%{_datadir}/squid \ --sharedstatedir=%{_localstatedir}/squid \ --with-logdir=%{_localstatedir}/log/squid \ - --with-pidfile=/run/squid.pid \ + --with-pidfile=%{_rundir}/%{name}/squid.pid \ --with-dl \ --enable-disk-io \ --enable-storeio \