585267
#!/bin/bash
585267
if [ -f /etc/sysconfig/squid ]; then
585267
	. /etc/sysconfig/squid
585267
fi
585267
585267
SQUID_CONF=${SQUID_CONF:-"/etc/squid/squid.conf"}
585267
585267
CACHE_SWAP=`sed -e 's/#.*//g' $SQUID_CONF | \
585267
	grep cache_dir | awk '{ print $3 }'`
585267
585267
for adir in $CACHE_SWAP; do
585267
	if [ ! -d $adir/00 ]; then
585267
		echo -n "init_cache_dir $adir... "
585267
		squid -N -z -F -f $SQUID_CONF >> /var/log/squid/squid.out 2>&1
585267
	fi
585267
done