Search squid archive

Re: [External Sender] Re: Squid service not restarting properly

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

 



To answer your question specifically..

On 27/09/24 23:50, Vivek Saurabh (CONT) wrote:
Hi NgTech,

I can restart the service wuth user and group being root. However, while I try to start using user as apdpr01 and group as root, it is getting timed out and not giving any errors. Can you please advise on this?

Squid low-level processes MUST NOT be given root access.

Your old user/group were valid and should still be working same as with any older Squid version.



Also, what the ./configure structure should be to compile the binary?



  ./configure --with-default-user=apdpr01   [1]

With the above build you can remove any "cache_effective_user apdpr01" lines from squid.conf.

group does not matter (much), so long as that user (apdpr01) is a member of the group according to the OS.

The OS will auto-assign the default group of user (apdpr01) to Squid processes, **unless** your squid.conf indicates a specific one such as:
  cache_effective_group apache


What you should expect to see is a single "squid" process running as root (this is the master one controlled by "service squid ...").
Its child processes should all have your custom user/group.


Things to check:

 * Any important looking messages from:
      squid -k parse


 * Does running squid manually work properly?
     sudo squid

  - If not, what does cache.log say about why it halted?


 * Do you have a "squid.service" installed properly with systemd ?

  - does it match the one we publish for Squid v6?
<https://github.com/squid-cache/squid/blob/v6/tools/systemd/squid.service>

- are the file paths listed there correct for where your Squid got installed to?



[1] other options may be needed, I do not know of specifically right now.

HTH
Amos

_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
https://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