summaryrefslogtreecommitdiff
path: root/localchastity-update
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2002-11-14 21:16:06 +0000
committerJonas Smedegaard <dr@jones.dk>2002-11-14 21:16:06 +0000
commit93ad18a55f6ae23ac2689d8904723b269ef2c647 (patch)
tree5505eedfa64ffa9966c19fea5097264305fed505 /localchastity-update
parent3508e8ccd26c310a8c4671ac5a5a5fc0bada7686 (diff)
Add localchastity-update, a support script for SquidGuard.
Diffstat (limited to 'localchastity-update')
-rwxr-xr-xlocalchastity-update27
1 files changed, 27 insertions, 0 deletions
diff --git a/localchastity-update b/localchastity-update
new file mode 100755
index 0000000..89dbf75
--- /dev/null
+++ b/localchastity-update
@@ -0,0 +1,27 @@
+#!/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