<div dir="ltr"><div>After proceeding with using the shipped service file, then systemctl daemon-reload I do not experience any stuck reboots at the moment. <br></div><div><br></div><div>Alex<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 9, 2018 at 4:30 PM, Alex K <span dir="ltr"><<a href="mailto:rightkicktech@gmail.com" target="_blank">rightkicktech@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Getting back to this, I face also issues that seems to be related with how systemd handles squid. <br></div><div>Frequently when I try restart the VM the VM is stuch at stopping squid and it never restarts. <br></div><div><br></div><div>Checking the differences between the autogenerated service file and the one shipped with squid I see: <br></div><div><br></div><div><span style="font-family:monospace,monospace">diff /run/systemd/generator.late/<wbr>squid.service squid3-3.5.23/tools/systemd/<wbr>squid.service<br>1c1,6<br>< # Automatically generated by systemd-sysv-generator<br>---<br>> ## Copyright (C) 1996-2016 The Squid Software Foundation and contributors<br>> ##<br>> ## Squid software is distributed under GPLv2+ license and includes<br>> ## contributions from numerous individuals and organizations.<br>> ## Please see the COPYING and CONTRIBUTORS files for details.<br>> ##<br>4,14c9,10<br>< Documentation=man:systemd-<wbr>sysv-generator(8)<br>< SourcePath=/etc/init.d/squid<br>< Description=LSB: Squid HTTP Proxy version 3.x<br>< Before=multi-user.target<br>< Before=multi-user.target<br>< Before=multi-user.target<br>< Before=graphical.target<br>< After=network-online.target<br>< After=remote-fs.target<br>< After=nss-lookup.target<br>< Wants=network-online.target<br>---<br>> Description=Squid Web Proxy Server<br>> After=network.target<br>17,20c13,15<br>< Type=forking<br>< Restart=no<br>< TimeoutSec=5min<br>< IgnoreSIGPIPE=no<br>---<br>> Type=simple<br>> ExecStart=/usr/sbin/squid -sYC -N<br>> ExecReload=/bin/kill -HUP $MAINPID<br>22,28c17,19<br>< GuessMainPID=no<br>< RemainAfterExit=no<br>< PIDFile=/var/run/squid.pid<br>< SuccessExitStatus=5 6<br>< ExecStart=/etc/init.d/squid start<br>< ExecStop=/etc/init.d/squid stop<br>< ExecReload=/etc/init.d/squid reload<br>---<br>><br>> [Install]<br>> WantedBy=multi-user.target<br></span></div><div><br></div><div>So do I just overwrite the
<span style="font-family:monospace,monospace">squid.service</span>
of the system with the one shipped with squid?</div><div><br></div><div>Thanx, <br></div><div>Alex<br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 10, 2018 at 5:09 AM, Amos Jeffries <span dir="ltr"><<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 10/05/18 11:53, Roberto Carna wrote:<br>
> Dear, I have Squid/Dansguardian in a Debian 9 server.<br>
> <br>
> My Squid packages is from Debian repo, it is the stable version:<br>
> <br>
> squid 3.5.23-5+deb9u1<br>
</span>...<br>
<span>> <br>
> But when I read I notice two curious lines:<br>
> <br>
> systemd[1]: squid.service: PID file /var/run/squid.pid not readable<br>
> (yet?) after start: No such file or directory<br>
> systemd[1]: squid.service: Supervising process 895 which is not our<br>
> child. We'll most likely not notice when it exits.<br>
> <br>
> <br>
> Is it normal or do I have to solve these? I repeat Squid is running OK...<br>
<br>
</span>systemd cannot cope with daemons like Squid-3. All you can do for now is<br>
ensure that you use the init.d scripts to manage Squid. Do not use the<br>
"service ..." commands provided by systemd.<br>
<br>
Squid-4 packages that resolve these issues are in Debian experimental<br>
awaiting an official upstream stable release.<br>
NP: the major bugs preventing upstream stable are not affecting the<br>
Debian package features. You can use the Squid-4 package now if you wish<br>
by adding that "experimental" repository to your apt sources.list,<br>
update apt, then install/upgrade Squid with "apt-get -t experimental<br>
install squid".<br>
<span class="m_5988062355989875360HOEnZb"><font color="#888888"><br>
Amos<br>
</font></span><div class="m_5988062355989875360HOEnZb"><div class="m_5988062355989875360h5">______________________________<wbr>_________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.<wbr>org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/l<wbr>istinfo/squid-users</a><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>