blob: 89dbf75af149f58d6929873186708dc912dc2d64 (
plain)
- #!/bin/sh
- #
- # /usr/local/sbin/localchastity-update
- # Put together and tweaked by Jonas Smedegaard <dr@jones.dk>
- # 2001-2002
- #
- # $Id: localchastity-update,v 1.1 2002-11-14 21:16:06 jonas Exp $
- #
- # Update chastity-list - part of SquidGuard
- #
- echo "Updating New DataFiles"
- /usr/bin/squidGuard -u -c /etc/squid/squidGuard-chastity.conf
- echo "Reloading new data files"
- # Get pid
- pid=`ps auxww | grep '(squidGuard)' | grep -v grep | awk '{print $2}'`
- if [ "$pid" ]
- then
- for cpid in $pid
- do
- kill -HUP $cpid
- #echo kill -HUP $cpid
- done
- else
- echo "Cound not reload squidGuard: try restarting squid"
- fi
|