eko rusdyanto wrote:
Dear all
i've run squid on centos4.2 for several month. but by accident i
remove squid.pid.
i've read in squid FAQ for this issue, and run all the suggestion,
but it didn't work
[root@its-lnx02 ~]# ps ax | grep squid
You have new mail in /var/spool/mail/root
[root@its-lnx02 ~]# /usr/local/squid/sbin/squid -k reconfigure
squid: ERROR: No running copy
http://wiki.squid-cache.org/SquidFaq/TroubleShooting#head-fa2a8d93db2ab1c414c4d0e71106ce871d2087e1
[root@its-lnx02 ~]# /usr/local/squid/sbin/squid
You have new mail in /var/spool/mail/root
[root@its-lnx02 ~]# /usr/local/squid/sbin/squid -k reconfigure
squid: ERROR: No running copy
[root@its-lnx02 ~]# ps ax | grep squid
7039 ? Ss 0:00 /usr/local/squid/sbin/squid
7099 pts/1 S+ 0:00 grep squid
[root@its-lnx02 ~]# echo 7039 > /usr/local/squid/var/logs/squid.pid
before sending a signal, you can see the correct squid.pid
ps -axf | grep `cat /usr/local/squid/var/logs/squid.pid` | grep -v grep
[root@its-lnx02 ~]# /usr/local/squid/sbin/squid -k reconfigure
squid: ERROR: Could not send signal 1 to process 7039: (3) No such
process
[root@its-lnx02 ~]# echo 7099 > /usr/local/squid/var/logs/squid.pid
why? 7099 is the PID from your "grep" command, it don't confuse.
try with
% squid -k check
Thanks
Emilio C.
You have new mail in /var/spool/mail/root
[root@its-lnx02 ~]# /usr/local/squid/sbin/squid -k reconfigure
squid: ERROR: Could not send signal 1 to process 7099: (3) No such
process
[root@its-lnx02 ~]# locate squid.pid
warning: locate: warning: database /var/lib/slocate/slocate.db' is
more than 8 days old
/usr/local/squid/var/logs/squid.pid
You have new mail in /var/spool/mail/root
[root@its-lnx02 ~]#
can anyone give me the suggestion ? i'll be apreciate it
best regards