#!/bin/sh # # Solaris 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. #ident "@(#)e2guardian @PACKAGE_VERSION@ 02/08/05 DB" # See how we were called. case "$1" in start) if [ -f @E2BINDIR@/e2guardian ] && [ -f @E2CONFDIR@/e2guardian.conf ]; then @E2BINDIR@/e2guardian echo "E2Guardian started." fi ;; stop) if [ -f @E2PIDDIR@/e2guardian.pid ]; then @E2BINDIR@/e2guardian -q /bin/rm -f @E2PIDDIR@/e2guardian.pid /bin/rm -f /tmp/.dguardianipc echo "E2Guardian stopped." fi ;; restart) $0 stop sleep 3 $0 start ;; status) if [ -f @E2BINDIR@/e2guardian ]; then @E2BINDIR@/e2guardian -s fi ;; *) echo "Usage: $0 {start|stop|restart}" >&2 ;; esac exit 0