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 \
+ ${LISTEN[@]/#/-b} \
${OPTIONS} \
- ${ZONES}
+ "${ZONES[@]}"
+
eend $?
}