diff options
author | Jamie Lenehan <lenehan@twibble.org> | 2006-10-06 08:07:54 +0000 |
---|---|---|
committer | Jamie Lenehan <lenehan@twibble.org> | 2006-10-06 08:07:54 +0000 |
commit | e56b975bb45bbbc4f0b99b502b3288737eb02e45 (patch) | |
tree | 01d71dd87db8d5f11cefde6e76dd06ed34f50906 /packages/havp/files/havp.init | |
parent | 1fee1949586215f9019770dd889d3631cdf1bf07 (diff) |
havp 0.82: Add HAVP, a HTTP antivirus proxy which uses clamav to scan
http traffic passing through the proxy. It can act as either a
transparent proxy or as a manual proxy.
Diffstat (limited to 'packages/havp/files/havp.init')
-rw-r--r-- | packages/havp/files/havp.init | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/packages/havp/files/havp.init b/packages/havp/files/havp.init new file mode 100644 index 0000000000..245a28e7bc --- /dev/null +++ b/packages/havp/files/havp.init @@ -0,0 +1,33 @@ +#!/bin/sh +DAEMON=/usr/sbin/havp +HAVP_CONFIG=/etc/havp/havp.config +PIDFILE=/var/run/havp/havp.pid +NAME="havp" +DESC="HAVP" + +test -r /etc/default/havp && . /etc/default/havp +test -x "$DAEMON" || exit 0 +test ! -r "$HAVP_CONFIG" && exit 0 + +case "$1" in + start) + echo "Starting $DESC: " + start-stop-daemon --oknodo -S -x $DAEMON -- -c $HAVP_CONFIG + echo "$NAME." + ;; + + stop) + echo "Stopping $DESC:" + start-stop-daemon -K -p $PIDFILE + ;; + + restart) + $0 stop >/dev/null 2>&1 + $0 start + ;; + + *) + echo "Usage: $0 {start|stop|restart}" + exit 0 + ;; +esac |