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

Henning Bertelsen k12ltsp at ramsele.dyndns.org
Fri Sep 3 14:22:27 UTC 2004


I think rsync needs tcp port 873 to be open in the firewall.
So my tip is check the firewall.

//Henning



> 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
>
>
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
>





More information about the K12OSN mailing list