#!/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