#! /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 $? }