<html><head></head><body bgcolor="#ffffff" text="#3d3d3d" link="#19b6ee" vlink="#3d3d3d"><div>Thanks...still a newb at systemd and that was totally the fix.</div><div><br></div><div>James</div><div><br></div><div>On Wed, 2018-06-13 at 10:03 -0300, Marcus Kool wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><pre>I have seen systemd killing daemons when it times out waiting for the pid file to appear.</pre><pre>I suggest to doublecheck that the pid filename in the service file and in squid.conf are the same.</pre><pre><br></pre><pre>Marcus</pre><pre><br></pre><pre>On 13/06/18 09:27, James Lay wrote:</pre><pre><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"></blockquote></pre><pre>Well....I'll just say up front that systemd is not my friend. When running squid via cli: sudo /opt/squid/sbin/squid it runs like a champ. But using the service file at:</pre><pre><br></pre><pre><a href="https://raw.githubusercontent.com/squid-cache/squid/master/tools/systemd/squid.service">https://raw.githubusercontent.com/squid-cache/squid/master/tools/systemd/squid.service</a></pre><pre><br></pre><pre>it times out after a few:</pre><pre><br></pre><pre>06:20:11 gateway squid[3669]: Created PID file (/opt/squid/var/run/squid.pid)</pre><pre>06:20:11 gateway squid[3669]: Squid Parent: will start 1 kids</pre><pre>06:20:11 gateway squid[3669]: Squid Parent: (squid-1) process 3678 started</pre><pre>06:20:11 gateway squid[3678]: Set Current Directory to /opt/squid/var</pre><pre>06:20:11 gateway squid[3678]: Starting Squid Cache version 4.0.24 for x86_64-pc-linux-gnu...</pre><pre>06:20:11 gateway squid[3678]: Service Name: squid</pre><pre>06:20:11 gateway squid[3678]: Process ID 3678</pre><pre>06:20:11 gateway squid[3678]: Process Roles: worker</pre><pre>06:20:11 gateway squid[3678]: With 1024 file descriptors available</pre><pre>06:20:11 gateway squid[3678]: Initializing IP Cache...</pre><pre>06:20:11 gateway squid[3678]: DNS Socket created at [::], FD 5</pre><pre>06:20:11 gateway squid[3678]: DNS Socket created at 0.0.0.0, FD 10</pre><pre>06:20:11 gateway squid[3678]: Adding nameserver 192.168.1.253 from /etc/resolv.conf</pre><pre>06:20:11 gateway squid[3678]: Adding nameserver 205.171.3.65 from /etc/resolv.conf</pre><pre>06:20:11 gateway squid[3678]: Adding nameserver 205.171.2.65 from /etc/resolv.conf</pre><pre>06:20:11 gateway squid[3678]: Adding domain slave-tothe-box.net from /etc/resolv.conf</pre><pre>06:20:11 gateway squid[3678]: Adding domain slave-tothe-box.net from /etc/resolv.conf</pre><pre>06:20:11 gateway squid[3678]: helperOpenServers: Starting 5/5 'security_file_certgen' processes</pre><pre>06:20:11 gateway squid[3678]: Logfile: opening log syslog:daemon.info</pre><pre>06:20:11 gateway squid[3678]: Store logging disabled</pre><pre>06:20:11 gateway squid[3678]: Swap maxSize 0 + 262144 KB, estimated 20164 objects</pre><pre>06:20:11 gateway squid[3678]: Target number of buckets: 1008</pre><pre>06:20:11 gateway squid[3678]: Using 8192 Store buckets</pre><pre>06:20:11 gateway squid[3678]: Max Mem size: 262144 KB</pre><pre>06:20:11 gateway squid[3678]: Max Swap size: 0 KB</pre><pre>06:20:11 gateway squid[3678]: Using Least Load store dir selection</pre><pre>06:20:11 gateway squid[3678]: Set Current Directory to /opt/squid/var</pre><pre>06:20:11 gateway squid[3678]: Finished loading MIME types and icons.</pre><pre>06:20:11 gateway squid[3678]: HTCP Disabled.</pre><pre>06:20:11 gateway squid[3678]: Squid plugin modules loaded: 0</pre><pre>06:20:11 gateway squid[3678]: Adaptation support is off.</pre><pre>06:20:11 gateway squid[3678]: Accepting HTTP Socket connections at local=x.x.x.x:3127 remote=[::] FD 21 flags=9</pre><pre>06:20:11 gateway squid[3678]: Accepting NAT intercepted HTTP Socket connections at local=x.x.x.x:3128 remote=[::] FD 22 flags=41</pre><pre>06:20:11 gateway squid[3678]: Accepting NAT intercepted SSL bumped HTTPS Socket connections at local=x.x.x.x:3129 remote=[::] FD 23 flags=41</pre><pre>06:20:12 gateway squid[3678]: storeLateRelease: released 0 objects</pre><pre>06:21:41 gateway systemd[1]: squid.service: Start operation timed out. Terminating.</pre><pre>06:21:41 gateway systemd[1]: squid.service: Killing process 3669 (squid) with signal SIGKILL.</pre><pre>06:21:41 gateway sudo: pam_unix(sudo:session): session closed for user root</pre><pre>06:21:41 gateway systemd[1]: squid.service: Killing process 3678 (squid) with signal SIGKILL.</pre><pre>06:21:41 gateway jlay[2415] 192.168.1.2 46692 192.168.1.252 22: sudo systemctl start squid</pre><pre>06:21:41 gateway systemd[1]: squid.service: Killing process 3680 (security_file_c) with signal SIGKILL.</pre><pre>06:21:41 gateway systemd[1]: squid.service: Killing process 3682 (security_file_c) with signal SIGKILL.</pre><pre>06:21:41 gateway systemd[1]: squid.service: Killing process 3683 (security_file_c) with signal SIGKILL.</pre><pre>06:21:41 gateway systemd[1]: squid.service: Killing process 3684 (security_file_c) with signal SIGKILL.</pre><pre>06:21:41 gateway systemd[1]: squid.service: Killing process 3685 (security_file_c) with signal SIGKILL.</pre><pre>06:21:41 gateway systemd[1]: squid.service: Failed with result 'timeout'.</pre><pre>06:21:41 gateway systemd[1]: Failed to start Squid Web Proxy Server.</pre><pre><br></pre><pre>I've modded the service file to reflect different binary location, but that's about it. Thank you.</pre><pre><br></pre><pre>James</pre><pre><br></pre><pre><br></pre><pre>_______________________________________________</pre><pre>squid-users mailing list</pre><pre><a href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.org</a></pre><pre><a href="http://lists.squid-cache.org/listinfo/squid-users">http://lists.squid-cache.org/listinfo/squid-users</a></pre><pre><br></pre><pre></pre><pre>_______________________________________________</pre><pre>squid-users mailing list</pre><pre><a href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.org</a></pre><pre><a href="http://lists.squid-cache.org/listinfo/squid-users">http://lists.squid-cache.org/listinfo/squid-users</a></pre><pre><br></pre></blockquote><div><br></div></body></html>