#!/bin/bash
# Copyright (C) 2005 McAfee, Inc. All rights reserved.

# See how we were called.
case "$1" in
  (start)
	find /scandir -type d -name segv -prune -o -type f -print0 | xargs -r0 rm -f
	/usr/sbin/webshield proxy-restart < /dev/null > /dev/null 2>&1 &
	;;
  (restart|reload)
	/usr/sbin/webshield proxy-restart < /dev/null > /dev/null 2>&1 &
	;;
  (stop)	# It is a kill because we want everything dead in the water
        killall -q -KILL ws_ftp ws_pop3 ws_ls ws_http ws_smtp ws_icap
        killall -q -KILL ws_ftp ws_pop3 ws_ls ws_http ws_smtp ws_icap
	;;
esac
exit 0
