X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=net-dns%2Frbldnsd%2Ffiles%2Finitd-0.997a;fp=net-dns%2Frbldnsd%2Ffiles%2Finitd-0.997a;h=6e830b330007cc6dcd09ae02fd335778e64985c8;hb=d6bb6525447b7a8c3f20e1f40c0a96ecf24de0f7;hp=0000000000000000000000000000000000000000;hpb=3c2cde2ad4e7d7fc26fbe3db8020bcedc02531d4;p=mjo-overlay.git diff --git a/net-dns/rbldnsd/files/initd-0.997a b/net-dns/rbldnsd/files/initd-0.997a new file mode 100644 index 0000000..6e830b3 --- /dev/null +++ b/net-dns/rbldnsd/files/initd-0.997a @@ -0,0 +1,29 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dns/rbldnsd/files/initd-0.997,v 1.1 2013/07/08 17:08:52 xmw Exp $ + +depend() { + need net +} + +start() { + ebegin "Starting rbldnsd" + + start-stop-daemon --start --quiet --pidfile /run/rbldnsd.pid \ + --exec /usr/sbin/rbldnsd -- \ + -r /var/db/rbldnsd \ + -p /run/rbldnsd.pid \ + $(for x in ${LISTEN}; do echo "-b ${x}"; done) \ + ${OPTIONS} \ + ${ZONES} + + eend $? +} + +stop() { + ebegin "Stopping rbldnsd" + start-stop-daemon --stop --quiet --pidfile /run/rbldnsd.pid \ + --exec /usr/sbin/rbldnsd + eend $? +}