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, 8 months ago) by misho
Branches: ipguard, MAIN
CVS tags: v1_04p3, v1_04p0, v1_04, HEAD
ipguard

    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>