Control: tags -1 + moreinfo Am 18.11.19 um 10:20 schrieb Fred Boiteux: > Package: systemd > Version: 241-7~deb10u2 > Severity: normal > > Dear Maintainer, > > On a Debian Buster system, I've installed the Squid package. It doesn't > start on every boot. On my system, the /var directory is on a separate > partition, mounted at boot. I've updated the squid.service to add a > dependency on this /var mount (see also #932593) : > > $ diff -u /lib/systemd/system/squid.service > /etc/systemd/system/squid.service > --- /lib/systemd/system/squid.service 2019-02-19 06:29:20.000000000 +0100 > +++ /etc/systemd/system/squid.service 2019-09-06 11:22:00.385894559 +0200 > @@ -8,7 +8,8 @@ > [Unit] > Description=Squid Web Proxy Server > Documentation=man:squid(8) > -After=network.target network-online.target nss-lookup.target > +Requires=var.mount network.target network-online.target nss-lookup.target > +After= var.mount network.target network-online.target nss-lookup.target > > [Service] > Type=forking > > > But even with this modification, the squid.service fails at boot : > > # systemctl status squid --no-pager -l > ● squid.service - Squid Web Proxy Server > Loaded: loaded (/etc/systemd/system/squid.service; enabled; vendor preset: > enabled) > Active: failed (Result: exit-code) since Mon 2019-11-18 09:30:26 CET; > 46min ago > Docs: man:squid(8) > Process: 431 ExecStartPre=/usr/sbin/squid --foreground -z (code=exited, > status=255/EXCEPTION) > > nov. 18 09:30:26 Deve2m squid[431]: WARNING: Cannot write log file: > /var/log/squid/cache.log > nov. 18 09:30:26 Deve2m squid[431]: /var/log/squid/cache.log: No such file or > directory > nov. 18 09:30:26 Deve2m squid[431]: messages will be sent to > 'stderr'. > nov. 18 09:30:26 Deve2m squid[431]: 2019/11/18 09:30:26| FATAL: Squid is > already running: Found fresh instance PID file (/var/run/squid.pid) with PID > 541 > nov. 18 09:30:26 Deve2m squid[431]: exception location: Instance.cc(121) > ThrowIfAlreadyRunningWith > nov. 18 09:30:26 Deve2m systemd[1]: squid.service: Control process exited, > code=exited, status=255/EXCEPTION > nov. 18 09:30:26 Deve2m systemd[1]: squid.service: Failed with result > 'exit-code'. > nov. 18 09:30:26 Deve2m systemd[1]: Failed to start Squid Web Proxy Server. > nov. 18 09:30:27 Deve2m systemd[1]: squid.service: Unit cannot be reloaded > because it is inactive. > nov. 18 09:30:28 Deve2m systemd[1]: squid.service: Unit cannot be reloaded > because it is inactive. > > When looking at the journal of var.mount and squid units, I can see that > SystemD seems to try squid before var.mount is up :
It's called systemd. Can you please attach the output of systemctl show squid.service and the output of journalctl -alb Thanks -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature