[K12OSN] Fwd: Cron <root at udjsvr02> /usr/sbin/update_squidguard_blacklists

John Hansknecht jhansknecht at hanstech.com
Tue Aug 31 17:57:27 UTC 2004


Hi folks,

My squidguard update cron process is failing with the following error. Does 
anyone have any suggestions on where to start looking for the source of the 
problem.

rsync: failed to connect to squidguard.mesd.k12.or.us: Connection timed out
rsync error: error in socket IO (code 10) at clientserver.c(83)

The script looks like this (as far as I know unmodified from installation)

TARGET=/var/squidGuard/blacklists

cd $TARGET || exit

# only run if squidGuard is active!
[ "`ps auxw | grep squid[G]uard`" ] || exit

rsync -az squidguard.mesd.k12.or.us::filtering $TARGET

for DIR in `ls $TARGET`
do
        if [ -f $DIR/domains.include ]
        then
                TMP=$RANDOM
                cat $DIR/domains $DIR/domains.include | sort | uniq > 
$DIR/domains.$TMP
                mv -f $DIR/domains.$TMP $DIR/domains
        fi
        if [ -f $DIR/urls.include ]
        then
                TMP=$RANDOM
                cat $DIR/urls $DIR/urls.include | sort | uniq > $DIR/urls.$TMP
                mv -f $DIR/urls.$TMP $DIR/urls
        fi
done

/usr/sbin/squidGuard -c /etc/squid/squidGuard.conf  -C all
# /usr/sbin/squidGuard -c /etc/squid/squidGuard.conf  -u

chown -R squid.squid $TARGET
chown -R squid.squid /var/log/squidGuard/
# inserted by John Hansknecht 6/6/03
chown -R squid.squid /home/squid/

sleep 5s

/usr/bin/killall -HUP squid

Thanks,

John Hansknecht





More information about the K12OSN mailing list