[ok-mail] [K12OSN] weird squidguard problem
Ascension Tech
ascensiontech at gmail.com
Thu Apr 7 08:10:26 UTC 2005
Thanks Adam, I came up the same solution. And thanks so much for the
Vermillion Squidguard site. I never would have got it working
otherwise. You rock!
Peter
On Apr 6, 2005 12:21 PM, Adam Melancon <adammelancon at gmail.com> wrote:
> I tweaked this script to only rebuild my custom allow/deny files,
> which makes things faster than running the updateblacklist script.
>
> You can tweak it to suit the names of the files you are using.
>
> [root at ltsp40 root]# cat rebuildallowdeny.sh
> #!/bin/bash
>
> #rebuild the custom databases
> /usr/sbin/squidGuard -c /etc/squid/squidGuard.conf -C
> local-denied.destdomainlist
> /usr/sbin/squidGuard -c /etc/squid/squidGuard.conf -C local-allowed.desturllist
> /usr/sbin/squidGuard -c /etc/squid/squidGuard.conf -C local-denied.desturllist
> /usr/sbin/squidGuard -c /etc/squid/squidGuard.conf -C
> local-allowed.destdomainlist
>
> #change permissions back to squid
> chown -R squid.squid /var/squidGuard/blacklists/
> chown -R squid.squid /var/log/squidGuard/
>
> sleep 5s
>
> #restart squid and squidguard
> /usr/bin/killall -HUP squid
> sleep 5s
>
> #show me the last 80 lines of the log to make sure it started correctly
> tail -n 80 /var/log/squidGuard/squidGuard.log
>
> [root at ltsp40 root]#
>
> Enjoy!
>
> --
> Adam Melancon
> Work: http://www.vermilion.lib.la.us
> Personal: http://www.melancon.org
>
> _______________________________________________
> 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