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