]> gitweb.michael.orlitzky.com - mjo-overlay.git/blobdiff - net-dns/rbldnsd/files/initd-0.997
Use a Bash array for the zones as well.
[mjo-overlay.git] / net-dns / rbldnsd / files / initd-0.997
index d7fa9997217280c421a1b181adf12a24be8f8c7c..1f401cbac53ad3bba1c527c792ee8fe360ea7212 100644 (file)
@@ -10,19 +10,14 @@ depend() {
 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 $?
 }