Keith 

I have the following script:

#!/bin/sh
#
# script to shutdown squid, initialize new cache_dir
#

SQUID_CACHE=/var/squid/cache
SQUID_DIR=/usr/local/squid

/etc/init.d/squid stop

mv $SQUID_CACHE /var/squid/old_cache

mkdir $SQUID_CACHE
chown squid $SQUID_CACHE

$SQUID_DIR/sbin/squid -z

/etc/init.d/squid start

Thanks.
---------------------
Jim Matthews 
ISS Systems Administrator 
Duke University - Perkins Library
Box 90196
Durham, NC 27708
Email: [EMAIL PROTECTED]
Voice: 919-660-5963
Fax: 919-684-6990



"Keith Fergie" <[EMAIL PROTECTED]> 
09/08/2004 11:17 AM

To
<[EMAIL PROTECTED]>
cc

Subject
[squid-users] clearing a squid cache






Dear All,

Is there a very simple way to clear a cache of all it's content to start
again, short on reinstalling?

Kind Regards

Keith
0870 41 40 345


[attachment "winmail.dat" deleted by Jim 
Matthews/Libraries/Provost/Academic/Univ/Duke] 

Reply via email to