1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
#!/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 @E2BINDIR@/e2guardian ] && @E2BINDIR@/e2guardian > /dev/null && echo -e ' e2guardian\c'
;;
stop)
@E2BINDIR@/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
|