File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / ipguard / doc / ipguard.gentoo
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 21:59:41 2012 UTC (12 years, 3 months ago) by misho
Branches: ipguard, MAIN
CVS tags: v1_04p3, v1_04p0, v1_04, HEAD
ipguard

#! /sbin/runscript
##  $Id: ipguard.gentoo,v 1.1.1.1 2012/02/21 21:59:41 misho Exp $

opts="reload"

depend() {
	use net
}

start() {
	ebegin "Starting ipguard"
	start-stop-daemon --start --quiet --pidfile /var/run/ipguard.pid \
		--exec /usr/sbin/ipguard -- -u 300 -xz
	eend $?
}

stop() {
	ebegin "Stopping ipguard"
	start-stop-daemon --stop --quiet --pidfile /var/run/ipguard.pid
	eend $?
}

reload() {
       ebegin "Reloading ipguard"
       start-stop-daemon --stop --quiet --pidfile /var/run/ipguard.pid \
              --signal HUP
       eend $?
}

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>