X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=net-dns%2Frbldnsd%2Ffiles%2Finitd-0.997;fp=net-dns%2Frbldnsd%2Ffiles%2Finitd-0.997;h=d7fa9997217280c421a1b181adf12a24be8f8c7c;hb=ddd75c0cad57c19ff6365faaeafbba73e90bdb69;hp=0000000000000000000000000000000000000000;hpb=0c88a991773349217c2e401336ea92c8c9798c27;p=mjo-overlay.git diff --git a/net-dns/rbldnsd/files/initd-0.997 b/net-dns/rbldnsd/files/initd-0.997 new file mode 100644 index 0000000..d7fa999 --- /dev/null +++ b/net-dns/rbldnsd/files/initd-0.997 @@ -0,0 +1,34 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +depend() { + need net +} + +start() { + ebegin "Starting rbldnsd" + + # Create -b args from the bash array $LISTEN. + local listenopts="" + for addr in "${LISTEN[@]}"; do + listenopts="${listenopts} -b $addr" + done + + start-stop-daemon --start --quiet --pidfile /run/rbldnsd.pid \ + --exec /usr/sbin/rbldnsd -- \ + -r /var/db/rbldnsd \ + -p /run/rbldnsd.pid \ + $listenopts \ + ${OPTIONS} \ + ${ZONES} + eend $? +} + +stop() { + ebegin "Stopping rbldnsd" + start-stop-daemon --stop --quiet --pidfile /run/rbldnsd.pid \ + --exec /usr/sbin/rbldnsd + eend $? +}