#!/lib/init/init-d-script
### BEGIN INIT INFO
# Provides:          ipband
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: ipband daemon
# Description:       This is a daemon which can monitor as many different subnets (or individual
#                    hosts, by specifying a "subnet" of /32) as you'd like.
### END INIT INFO

PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/ipband
NAME=ipband
DESC=ipband
PIDDIR=/var/run/ipband

set -e

test -x $DAEMON || exit 0

if [ -r /etc/default/ipband ]; then
    . /etc/default/ipband
else
    printf "/etc/default/ipband is not readable, not starting ipband.\n"
    exit 0
fi

. /lib/lsb/init-functions
