[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [K12OSN] Emptying the K12LTSP version of the Squid cache
- From: Eric Harrison <eharrison mail mesd k12 or us>
- To: Craig Sawyer <csawyer yumaed org>
- Cc: K12OSN redhat com
- Subject: Re: [K12OSN] Emptying the K12LTSP version of the Squid cache
- Date: Fri Mar 29 18:16:01 2002
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....
<snip>
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 &
<snip>
-Eric
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]