Search squid archive

Re: Squid and systemd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/systemd/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 kids
06:20:11 gateway squid[3669]: Squid Parent: (squid-1) process 3678 started
06:20:11 gateway squid[3678]: Set Current Directory to /opt/squid/var
06: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: squid
06:20:11 gateway squid[3678]: Process ID 3678
06:20:11 gateway squid[3678]: Process Roles: worker
06:20:11 gateway squid[3678]: With 1024 file descriptors available
06:20:11 gateway squid[3678]: Initializing IP Cache...
06:20:11 gateway squid[3678]: DNS Socket created at [::], FD 5
06:20:11 gateway squid[3678]: DNS Socket created at 0.0.0.0, FD 10
06:20:11 gateway squid[3678]: Adding nameserver 192.168.1.253 from /etc/resolv.conf
06:20:11 gateway squid[3678]: Adding nameserver 205.171.3.65 from /etc/resolv.conf
06:20:11 gateway squid[3678]: Adding nameserver 205.171.2.65 from /etc/resolv.conf
06:20:11 gateway squid[3678]: Adding domain slave-tothe-box.net from /etc/resolv.conf
06:20:11 gateway squid[3678]: Adding domain slave-tothe-box.net from /etc/resolv.conf
06:20:11 gateway squid[3678]: helperOpenServers: Starting 5/5 'security_file_certgen' processes
06:20:11 gateway squid[3678]: Logfile: opening log syslog:daemon.info
06:20:11 gateway squid[3678]: Store logging disabled
06:20:11 gateway squid[3678]: Swap maxSize 0 + 262144 KB, estimated 20164 objects
06:20:11 gateway squid[3678]: Target number of buckets: 1008
06:20:11 gateway squid[3678]: Using 8192 Store buckets
06:20:11 gateway squid[3678]: Max Mem  size: 262144 KB
06:20:11 gateway squid[3678]: Max Swap size: 0 KB
06:20:11 gateway squid[3678]: Using Least Load store dir selection
06:20:11 gateway squid[3678]: Set Current Directory to /opt/squid/var
06: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: 0
06: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=9
06:20:11 gateway squid[3678]: Accepting NAT intercepted HTTP Socket connections at local=x.x.x.x:3128 remote=[::] FD 22 flags=41
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
06:20:12 gateway squid[3678]: storeLateRelease: released 0 objects
06: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 root
06: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 squid
06: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 list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users


_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux