Re: [K12OSN] Emptying the K12LTSP version of the Squid cache

Eric Harrison (eharrison@mail.mesd.k12.or.us)
Fri, 29 Mar 2002 15:15:44 -0800 (PST)


On Fri, 29 Mar 2002, Craig Sawyer wrote:

>>> /sbin/service squid stop
>>> cd /var/spool/squid
>>> rm -rfv *
>>> /sbin/service squid start
>
>I've never seen that particular start up script, but squid by default does
>not automatically re-build the swap directories.

It's just a wrapper script that would run "/etc/rc.d/init.d/squid start",
which is 3 less characters to type!

>One MUST use squid -z

>Perhaps the /sbin/service script is nice enough to detect that, and run
>squid with the -z option, I do not know.

Yes, the squid init script detects that the spool had been wiped out and
automatically runs squid -z before starting up....

	
	start() {
	    for adir in $CACHE_SWAP; do
	        if [ ! -d $adir/00 ]; then 
	             echo -n "init_cache_dir $adir... "
	             $SQUID -z -F 2>/dev/null
	        fi
		done
		echo -n $"Starting $prog: "
		$SQUID $SQUID_OPTS 2> /dev/null &
	

-Eric



_______________________________________________
K12OSN mailing list
K12OSN@redhat.com
https://listman.redhat.com/mailman/listinfo/k12osn
For more info see