#!/bin/sh
#
# BSD startup script for e2guardian
# partly based on httpd startup script
#
# description: A web content filtering plugin for web \
#              proxies, developed to filter using lists of \
#              banned phrases, MIME types, filename \
#              extensions and PICS labelling.
# processname: e2guardian


# See how we were called.

case "$1" in
start)
        [ -x /usr/local/sbin/e2guardian ] && /usr/local/sbin/e2guardian > /dev/null && echo -e ' e2guardian\c'
        ;;
stop)
        /usr/local/sbin/e2guardian -q
        [ -r /tmp/.dguardianipc ] && echo -e ' e2guardian\c'
        rm -f /tmp/.dguardianipc
        ;;
restart)
        $0 stop
        $0 start
        ;;
*)
        echo "Usage: configure {start|stop|restart}" >&2
        ;;
esac
exit 0
