[plug] Squid2.3

Bernard Blackham dagobah at plug.linux.org.au
Wed Nov 1 20:48:45 WST 2000


On Wed, 1 Nov 2000, Thomas, Andre wrote:
> squid/squid.  Opting for squid/squid, I added a user "squid" and ran
> from /usr/local/squid/bin/ ./squid.  This is what I get:
> 
> Nothing.

Good sign.

Squid likes its commands in the form of "squid" or "squid -k shutdown" or
"squid -k reconfigure" or "squid -k check". Easiest way to use squid is
with the rc script, usually /etc/rc.d/init.d/squid (on RH/Mandrake) and
give it start/stop/restart/status as parameters.

Also, it doesn't like being told to reload through sending it a HUP
(killall -1 squid), instead dies of shock if you try. To reload
configuration use either /etc/rc.d/init.d/squid restart or squid -k
reconfigure.

Check to see if it really is running by doing "ps aux |grep squid" and it
should be running with the user you told it too aswell. Actually there'll
be at least 2 processes called squid and perhaps some dnsserver's if
you've enabled them: 

root      1231  0.0  0.0  3276    0 ?        SW   Oct24   0:00 [squid]
squid     1232  0.0 20.9 18444 6436 ?        S    Oct24   3:26 (squid)
squid     1233  0.0  1.3  1632  404 ?        S    Oct24   0:01 (dnsserver)
squid     1234  0.0  0.0  1464    0 ?        SW   Oct24   0:00 [dnsserver]
squid     1235  0.0  0.0  1460    0 ?        SW   Oct24   0:00 [dnsserver]
squid     1236  0.0  0.0  1316    0 ?        SW   Oct24   0:00 [dnsserver]
squid     1237  0.0  0.0  1316    0 ?        SW   Oct24   0:00 [dnsserver]
squid     1238  0.0  0.2  1048   64 ?        S    Oct24   0:00 (unlinkd)

One squid process will run as root, this, AFAIK, accepts the connections
and passes them onto the other process to do the actual proxying. 

But simply, typing 'squid' starts squid and if it doesn't complain about
anything, usually you can assume it's working. 

This knowledge I've acquired through configuring squid on two different
machines in my life, so if I've missed something then may somebody else
pick it out :)

Hope this helps,

Bernard.

-- 
  Bernard Blackham
  bernard at blackham.com.au




More information about the plug mailing list