]> gitweb.michael.orlitzky.com - mjo-overlay.git/blob - net-dns/rbldnsd/files/initd-0.997
New ebuild: net-dns/rbldnsd-0.997.
[mjo-overlay.git] / net-dns / rbldnsd / files / initd-0.997
1 #!/sbin/runscript
2 # Copyright 1999-2013 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4 # $Header: $
5
6 depend() {
7 need net
8 }
9
10 start() {
11 ebegin "Starting rbldnsd"
12
13 # Create -b args from the bash array $LISTEN.
14 local listenopts=""
15 for addr in "${LISTEN[@]}"; do
16 listenopts="${listenopts} -b $addr"
17 done
18
19 start-stop-daemon --start --quiet --pidfile /run/rbldnsd.pid \
20 --exec /usr/sbin/rbldnsd -- \
21 -r /var/db/rbldnsd \
22 -p /run/rbldnsd.pid \
23 $listenopts \
24 ${OPTIONS} \
25 ${ZONES}
26 eend $?
27 }
28
29 stop() {
30 ebegin "Stopping rbldnsd"
31 start-stop-daemon --stop --quiet --pidfile /run/rbldnsd.pid \
32 --exec /usr/sbin/rbldnsd
33 eend $?
34 }