1: #! /sbin/runscript
2: ## $Id: ipguard.gentoo,v 1.1.1.1 2012/02/21 21:59:41 misho Exp $
3:
4: opts="reload"
5:
6: depend() {
7: use net
8: }
9:
10: start() {
11: ebegin "Starting ipguard"
12: start-stop-daemon --start --quiet --pidfile /var/run/ipguard.pid \
13: --exec /usr/sbin/ipguard -- -u 300 -xz
14: eend $?
15: }
16:
17: stop() {
18: ebegin "Stopping ipguard"
19: start-stop-daemon --stop --quiet --pidfile /var/run/ipguard.pid
20: eend $?
21: }
22:
23: reload() {
24: ebegin "Reloading ipguard"
25: start-stop-daemon --stop --quiet --pidfile /var/run/ipguard.pid \
26: --signal HUP
27: eend $?
28: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>