Thanks,
that is very interesting,
the ownership of swap.state on all servers are squid,
because it is pipe the echo output so it shouldn't change
the permission.
however was wondering if clearing swap.state is the way of
clearing cache !!!!
I was checking the squid that comes with Centos,
it does not have any flush option, probably flush is a
bad idea ?
sudo ls -la /var/spool/squid/cache/swap.state
-rw-r----- 1 squid squid 5097456 Oct 23 11:44
/var/spool/squid/cache/swap.state
ps -ef | grep -i squid
root 26504 1 0 Oct03 ? 00:00:00 /usr/local/squid/sbin/squid
squid 26506 26504 0 Oct03 ? 00:00:00 (squid)
root 25199 1 0 Oct17 ? 00:00:00 /usr/local/squid/sbin/squid
squid 25201 25199 0 Oct17 ? 00:12:34 (squid)
squid 25207 25201 0 Oct17 ? 00:00:00 (unlinkd)
squid 12095 25201 0 Oct22 ? 00:00:00 (ncsa_auth)
/var/www/passwd/passwords
squid 12096 25201 0 Oct22 ? 00:00:00 (ncsa_auth)
/var/www/passwd/passwords
squid 12097 25201 0 Oct22 ? 00:00:00 (ncsa_auth)
/var/www/passwd/passwords
squid 12098 25201 0 Oct22 ? 00:00:00 (ncsa_auth)
/var/www/passwd/passwords
squid 12099 25201 0 Oct22 ? 00:00:00 (ncsa_auth)
/var/www/passwd/passwords
babak 26585 26554 0 11:59 pts/1 00:00:00 grep -i squid
Quoting Adrian Chadd <[EMAIL PROTECTED]>:
On Tue, Oct 23, 2007, [EMAIL PROTECTED] wrote:
Hi
we are using SQUID 2.6.STABLE13
we usually restarting squid by flushing it
service squid restart
service squid flush
flush)
$0 stop
sleep 2
echo -n 'Flushing squid cache: '
echo "" > /var/spool/squid/cache/swap.state
This line isn't flushing the cache and its probably creating a root-owned
swap.state file thats causing your problem.
Adrian