| 1 |
#!/bin/sh |
| 2 |
# |
| 3 |
# BSD startup script for e2guardian |
| 4 |
# partly based on httpd startup script |
| 5 |
# |
| 6 |
# description: A web content filtering plugin for web \ |
| 7 |
# proxies, developed to filter using lists of \ |
| 8 |
# banned phrases, MIME types, filename \ |
| 9 |
# extensions and PICS labelling. |
| 10 |
# processname: e2guardian |
| 11 |
|
| 12 |
|
| 13 |
# See how we were called. |
| 14 |
|
| 15 |
case "$1" in |
| 16 |
start) |
| 17 |
[ -x @E2BINDIR@/e2guardian ] && @E2BINDIR@/e2guardian > /dev/null && echo -e ' e2guardian\c' |
| 18 |
;; |
| 19 |
stop) |
| 20 |
@E2BINDIR@/e2guardian -q |
| 21 |
[ -r /tmp/.dguardianipc ] && echo -e ' e2guardian\c' |
| 22 |
rm -f /tmp/.dguardianipc |
| 23 |
;; |
| 24 |
restart) |
| 25 |
$0 stop |
| 26 |
$0 start |
| 27 |
;; |
| 28 |
*) |
| 29 |
echo "Usage: configure {start|stop|restart}" >&2 |
| 30 |
;; |
| 31 |
esac |
| 32 |
exit 0 |