[squid-users] Squid -k doesn't work.

From: Alex Abramov <levensn_at_gmail.com>
Date: Fri, 13 Nov 2009 15:06:36 +0600

Hi everyone. I can't send a signal ( -k reconfigure or -k check .. )
by root to my squid, it works only by squid user.

sudo -u squid -k reconfigure

As you can see, i can read it.

bash-2.05b# whoami
root
bash-2.05b# ls -la  /usr/local/squid/
total 10
drwxrwxr-x   4 squid  squid  512 Nov 13 00:01 .
drwxr-xr-x  17 root   wheel  512 Nov  1 14:31 ..
drwxr-x---  18 squid  squid  512 Nov 13 12:22 cache
drwxr-x---   2 squid  squid  512 Nov 12 12:19 logs
-rw-r--r--   1 squid  squid    5 Nov 13 12:22 squid.pid
bash-2.05b# cat  /usr/local/squid/squid.pid
6990
bash-2.05b# ps -waux | grep 6990
squid    6990 15.8 21.9 234936 227312  ??  S    12:22PM  18:42.82
(squid) -D (squid)
root     9627  0.0  0.1  1592   852  p1  S+    2:50PM   0:00.01 grep 6990
bash-2.05b# squid -k check
squid: ERROR: Could not send signal 0 to process 6990: (3) No such process

/usr/local/etc/rc.d/squid reload  doesn't work too

So i can send a signal like this

kill -HUP 6990

But after that squid doesn't want to work normally ( Simply it doesn't work).
It shows me in cache.log this

2009/11/08 17:21:08| Processing Configuration File:
/usr/local/etc/squid/squid.conf (depth 0)
2009/11/08 17:21:08| DNS Socket created at 0.0.0.0, port 54812, FD 9
2009/11/08 17:21:08| Adding domain tsb.kz from /etc/resolv.conf
2009/11/08 17:21:08| Adding nameserver 10.159.4.2 from /etc/resolv.conf
2009/11/08 17:21:08| Adding nameserver 10.159.7.34 from /etc/resolv.conf
2009/11/08 17:21:08| helperOpenServers: Starting 500/500 'ntlm_auth' processes
2009/11/08 17:21:13| helperOpenServers: Starting 20/20 'ntlm_auth' processes
2009/11/08 17:21:14| Accepting  HTTP connections at 192.168.7.10, port
3128, FD 531.
2009/11/08 17:21:14| HTCP Disabled.
2009/11/08 17:21:14| Accepting SNMP messages on port 3401, FD 534.
2009/11/08 17:21:14| Loaded Icons.
2009/11/08 17:21:14| Ready to serve requests.
2009/11/08 17:21:14| Select loop Error. Retry 1

Here is my squid.conf http://paste.lisp.org/+1XNV
Received on Fri Nov 13 2009 - 09:06:59 MST

This archive was generated by hypermail 2.2.0 : Fri Nov 13 2009 - 12:00:04 MST