4
# Required-Start: $remote_fs $syslog
5
# Required-Stop: $remote_fs $syslog
6
# Default-Start: 2 3 4 5
10
# Original version by Robert Leslie
11
# <rob@mars.org>, edited by iwj and cs
12
# Modified for fwlogwatch by Alberto Gonzalez Iniesta <agi@agi.as>
14
test $DEBIAN_SCRIPT_DEBUG && set -v -x
16
DAEMON=/usr/sbin/fwlogwatch
17
CONFIG=/etc/fwlogwatch/fwlogwatch.config
18
DEFAULT=/etc/default/fwlogwatch
20
test -x $DAEMON || exit 0
21
test -f $CONFIG || exit 0
22
test -r $DEFAULT || exit 0
24
# Source configuration generated from debconf's values
27
# Start fwlogwatch as a daemon?
28
if [ "$START_DAEMON" != "true" ]; then
32
PIDFILE=`grep "^pidfile" $CONFIG | sed 's/.*=[\t ]*//' `
36
echo -n "Starting firewall log watcher: fwlogwatch"
37
start-stop-daemon --start --quiet \
38
--exec $DAEMON -- -R $PARAMS
42
echo -n "Stopping firewall log watcher: fwlogwatch"
43
start-stop-daemon --stop --quiet --oknodo \
44
--exec $DAEMON --pidfile $PIDFILE
53
echo "Usage: /etc/init.d/fwlogwatch {start|stop|restart|force-reload}" >&2
60
# vim:set ai et sts=2 sw=2 tw=0: