summaryrefslogtreecommitdiff
blob: edfef8a1105749e5c3cc099240543be7d0f53c4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

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 $?
}