]> gitweb.michael.orlitzky.com - mjo-overlay.git/blob - net-dns/rbldnsd/files/initd-0.997a
net-dns/rbldnsd: Don't depend on net in the init script.
[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: $
5
6 start() {
7 ebegin "Starting rbldnsd"
8
9 start-stop-daemon --start --quiet --pidfile /run/rbldnsd.pid \
10 --exec /usr/sbin/rbldnsd -- \
11 -r /var/db/rbldnsd \
12 -p /run/rbldnsd.pid \
13 $(for x in ${LISTEN}; do echo "-b ${x}"; done) \
14 ${OPTIONS} \
15 ${ZONES}
16
17 eend $?
18 }
19
20 stop() {
21 ebegin "Stopping rbldnsd"
22 start-stop-daemon --stop --quiet --pidfile /run/rbldnsd.pid \
23 --exec /usr/sbin/rbldnsd
24 eend $?
25 }