diff options
Diffstat (limited to 'net-analyzer/ipband/files/ipband-init')
-rw-r--r-- | net-analyzer/ipband/files/ipband-init | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/net-analyzer/ipband/files/ipband-init b/net-analyzer/ipband/files/ipband-init new file mode 100644 index 000000000000..5a33de1346cd --- /dev/null +++ b/net-analyzer/ipband/files/ipband-init @@ -0,0 +1,25 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ipband/files/ipband-init,v 1.1 2007/02/03 21:15:51 mjolnir Exp $ + +depend() { + need net +} + +start() { + ebegin "Starting ipband" + start-stop-daemon --start --exec /usr/bin/ipband -- -F > /dev/null + if [ $? -ne 0 ]; then + ewarn "Check settings in /etc/ipband.conf" + eend 1 + else + eend 0 + fi +} + +stop() { + ebegin "Stopping ipband" + start-stop-daemon --stop --exec /usr/bin/ipband + eend $? +} |