File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / ipguard / doc / ipguard.gentoo
Revision 1.1.1.1.2.1: download - view: text, annotated - select for diffs - revision graph
Tue Oct 18 13:59:21 2016 UTC (7 years, 8 months ago) by misho
Branches: v1_04p0
CVS tags: v1_04p1
Diff to: branchpoint 1.1.1.1: preferred, colored
v1_04p1

#! /sbin/runscript
##  $Id: ipguard.gentoo,v 1.1.1.1.2.1 2016/10/18 13:59:21 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>