File: bsd-init.in

package info (click to toggle)
e2guardian 5.5.9-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,352 kB
  • sloc: cpp: 26,398; makefile: 640; sh: 324; perl: 55
file content (32 lines) | stat: -rwxr-xr-x 773 bytes parent folder | download | duplicates (2)
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