[squid-users] Squid and systemd

James Lay jlay at slave-tothe-box.net
Fri Jun 15 00:56:13 UTC 2018


Thanks...still a newb at systemd and that was totally the fix.

James

On Wed, 2018-06-13 at 10:03 -0300, Marcus Kool wrote:
> I have seen systemd killing daemons when it times out waiting for the
> pid file to appear.I suggest to doublecheck that the pid filename in
> the service file and in squid.conf are the same.
> Marcus
> On 13/06/18 09:27, James Lay wrote:
> 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:
> https://raw.githubusercontent.com/squid-cache/squid/master/tools/syst
> emd/squid.service
> it times out after a few:
> 06:20:11 gateway squid[3669]: Created PID file
> (/opt/squid/var/run/squid.pid)06:20:11 gateway squid[3669]: Squid
> Parent: will start 1 kids06:20:11 gateway squid[3669]: Squid Parent:
> (squid-1) process 3678 started06:20:11 gateway squid[3678]: Set
> Current Directory to /opt/squid/var06:20:11 gateway squid[3678]:
> Starting Squid Cache version 4.0.24 for x86_64-pc-linux-
> gnu...06:20:11 gateway squid[3678]: Service Name: squid06:20:11
> gateway squid[3678]: Process ID 367806:20:11 gateway squid[3678]:
> Process Roles: worker06:20:11 gateway squid[3678]: With 1024 file
> descriptors available06:20:11 gateway squid[3678]: Initializing IP
> Cache...06:20:11 gateway squid[3678]: DNS Socket created at [::], FD
> 506:20:11 gateway squid[3678]: DNS Socket created at 0.0.0.0, FD
> 1006:20:11 gateway squid[3678]: Adding nameserver 192.168.1.253 from
> /etc/resolv.conf06:20:11 gateway squid[3678]: Adding nameserver
> 205.171.3.65 from /etc/resolv.conf06:20:11 gateway squid[3678]:
> Adding nameserver 205.171.2.65 from /etc/resolv.conf06:20:11 gateway
> squid[3678]: Adding domain slave-tothe-box.net from
> /etc/resolv.conf06:20:11 gateway squid[3678]: Adding domain slave-
> tothe-box.net from /etc/resolv.conf06:20:11 gateway squid[3678]:
> helperOpenServers: Starting 5/5 'security_file_certgen'
> processes06:20:11 gateway squid[3678]: Logfile: opening log
> syslog:daemon.info06:20:11 gateway squid[3678]: Store logging
> disabled06:20:11 gateway squid[3678]: Swap maxSize 0 + 262144 KB,
> estimated 20164 objects06:20:11 gateway squid[3678]: Target number of
> buckets: 100806:20:11 gateway squid[3678]: Using 8192 Store
> buckets06:20:11 gateway squid[3678]: Max Mem  size: 262144 KB06:20:11
> gateway squid[3678]: Max Swap size: 0 KB06:20:11 gateway squid[3678]:
> Using Least Load store dir selection06:20:11 gateway squid[3678]: Set
> Current Directory to /opt/squid/var06:20:11 gateway squid[3678]:
> Finished loading MIME types and icons.06:20:11 gateway squid[3678]:
> HTCP Disabled.06:20:11 gateway squid[3678]: Squid plugin modules
> loaded: 006:20:11 gateway squid[3678]: Adaptation support is
> off.06:20:11 gateway squid[3678]: Accepting HTTP Socket connections
> at local=x.x.x.x:3127 remote=[::] FD 21 flags=906:20:11 gateway
> squid[3678]: Accepting NAT intercepted HTTP Socket connections at
> local=x.x.x.x:3128 remote=[::] FD 22 flags=4106:20:11 gateway
> squid[3678]: Accepting NAT intercepted SSL bumped HTTPS Socket
> connections at local=x.x.x.x:3129 remote=[::] FD 23 flags=4106:20:12
> gateway squid[3678]: storeLateRelease: released 0 objects06:21:41
> gateway systemd[1]: squid.service: Start operation timed out.
> Terminating.06:21:41 gateway systemd[1]: squid.service: Killing
> process 3669 (squid) with signal SIGKILL.06:21:41 gateway sudo:
> pam_unix(sudo:session): session closed for user root06:21:41 gateway
> systemd[1]: squid.service: Killing process 3678 (squid) with signal
> SIGKILL.06:21:41 gateway jlay[2415] 192.168.1.2 46692 192.168.1.252
> 22: sudo systemctl start squid06:21:41 gateway systemd[1]:
> squid.service: Killing process 3680 (security_file_c) with signal
> SIGKILL.06:21:41 gateway systemd[1]: squid.service: Killing process
> 3682 (security_file_c) with signal SIGKILL.06:21:41 gateway
> systemd[1]: squid.service: Killing process 3683 (security_file_c)
> with signal SIGKILL.06:21:41 gateway systemd[1]: squid.service:
> Killing process 3684 (security_file_c) with signal SIGKILL.06:21:41
> gateway systemd[1]: squid.service: Killing process 3685
> (security_file_c) with signal SIGKILL.06:21:41 gateway systemd[1]:
> squid.service: Failed with result 'timeout'.06:21:41 gateway
> systemd[1]: Failed to start Squid Web Proxy Server.
> I've modded the service file to reflect different binary location,
> but that's about it. Thank you.
> James
> 
> _______________________________________________squid-users mailing
> listsquid-users at lists.squid-cache.orghttp://lists.squid-cache.org/lis
> tinfo/squid-users
> _______________________________________________squid-users mailing
> listsquid-users at lists.squid-cache.orghttp://lists.squid-cache.org/lis
> tinfo/squid-users
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20180614/3b6d07ee/attachment.html>


More information about the squid-users mailing list