Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #275351

Re: Squid on Debian 12 not staring via systemd

From Charles Curley <charlescurley@charlescurley.com>
Newsgroups linux.debian.user
Subject Re: Squid on Debian 12 not staring via systemd
Date 2024-12-06 20:10 +0100
Message-ID <JQLS9-egbV-19@gated-at.bofh.it> (permalink)
References (2 earlier) <JQJnj-eezG-5@gated-at.bofh.it> <JQK9H-ef5F-15@gated-at.bofh.it> <JQK9H-ef5F-17@gated-at.bofh.it> <JQK9H-ef5F-13@gated-at.bofh.it> <JQL5L-efFs-15@gated-at.bofh.it>
Organization occasionally

Show all headers | View raw


On Fri, 6 Dec 2024 13:01:37 -0500
Jeffrey Walton <noloader@gmail.com> wrote:

> >
> > Squid has a service account: "proxy" and group "proxy".  
> 
> That may be an issue. Years ago I had MySQL failures because MySQL
> startup scripts checked UID and GID were mysql. Trying to start the
> server as root led to failures. You may be experiencing something
> similar. You might try `su proxy` to run as the squid user.

Not necessarily. Looking at the service file for squid shows, inter
alia:

[Service]
Type=notify
PIDFile=/run/squid.pid
Group=proxy
RuntimeDirectory=squid
RuntimeDirectoryMode=0775
ExecStartPre=/usr/sbin/squid --foreground -z
ExecStart=/usr/sbin/squid --foreground -sYC
ExecReload=/bin/kill -HUP $MAINPID
KillMode=mixed
NotifyAccess=all

That suggests tha you want to run as user root, group squid. Indeed:

root@issola:~# ps aux | grep -i squid
root        2217  0.0  0.2  66372 17516 ?        Ss   Nov26   0:00 /usr/sbin/squid --foreground -sYC
proxy       2220  0.0  0.2  71824 23064 ?        S    Nov26   1:53 (squid-1) --kid squid-1 --foreground -sYC
proxy       2244  0.0  0.0   5644  1168 ?        S    Nov26   0:00 (logfile-daemon) /var/log/squid/access.log
root      285132  0.0  0.0   6332  2120 pts/1    S+   11:46   0:00 grep --colour=auto -i squid
root@issola:~# 




-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Squid on Debian 12 not staring via systemd Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-12-06 11:10 +0100
  Re: Squid on Debian 12 not staring via systemd Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-12-06 11:30 +0100
    Re: Squid on Debian 12 not staring via systemd Jeffrey Walton <noloader@gmail.com> - 2024-12-06 17:30 +0100
      Re: Squid on Debian 12 not staring via systemd Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-12-06 18:20 +0100
        Re: Squid on Debian 12 not staring via systemd Jeffrey Walton <noloader@gmail.com> - 2024-12-06 19:20 +0100
          Re: Squid on Debian 12 not staring via systemd Charles Curley <charlescurley@charlescurley.com> - 2024-12-06 20:10 +0100
      Re: Squid on Debian 12 not staring via systemd Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-12-06 22:40 +0100
        Re: Squid on Debian 12 not staring via systemd Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-12-06 23:40 +0100
          Re: Squid on Debian 12 not staring via systemd "Andrew M.A. Cater" <amacater@einval.com> - 2024-12-07 00:20 +0100
            Re: Squid on Debian 12 not staring via systemd Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-12-07 12:40 +0100
          Re: Squid on Debian 12 not staring via systemd Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-12-07 04:00 +0100
            Re: Squid on Debian 12 not staring via systemd Andy Smith <andy@strugglers.net> - 2024-12-07 04:20 +0100
            Re: Squid on Debian 12 not staring via systemd Greg Wooledge <greg@wooledge.org> - 2024-12-07 04:40 +0100
            Re: Squid on Debian 12 not staring via systemd Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-12-07 05:00 +0100
  Re: Squid on Debian 12 not staring via systemd Stefan Monnier <monnier@iro.umontreal.ca> - 2024-12-06 17:00 +0100

csiph-web