]> gitweb.michael.orlitzky.com - mjo-overlay.git/blob - net-dns/rbldnsd/files/initd-0.997a
Add rbldnsd in preparation for fixing two bugs.
[mjo-overlay.git] / net-dns / rbldnsd / files / initd-0.997a
1 #!/sbin/runscript
2 # Copyright 1999-2013 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4 # $Header: /var/cvsroot/gentoo-x86/net-dns/rbldnsd/files/initd-0.997,v 1.1 2013/07/08 17:08:52 xmw Exp $
5
6 depend() {
7 need net
8 }
9
10 start() {
11 ebegin "Starting rbldnsd"
12
13 start-stop-daemon --start --quiet --pidfile /run/rbldnsd.pid \
14 --exec /usr/sbin/rbldnsd -- \
15 -r /var/db/rbldnsd \
16 -p /run/rbldnsd.pid \
17 $(for x in ${LISTEN}; do echo "-b ${x}"; done) \
18 ${OPTIONS} \
19 ${ZONES}
20
21 eend $?
22 }
23
24 stop() {
25 ebegin "Stopping rbldnsd"
26 start-stop-daemon --stop --quiet --pidfile /run/rbldnsd.pid \
27 --exec /usr/sbin/rbldnsd
28 eend $?
29 }