diff options
Diffstat (limited to 'rbldnsd.sh')
-rw-r--r-- | rbldnsd.sh | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/rbldnsd.sh b/rbldnsd.sh index 65408de56ab1..c657b7993709 100644 --- a/rbldnsd.sh +++ b/rbldnsd.sh @@ -1,9 +1,10 @@ #!/bin/bash -declare -A SYNC source /etc/conf.d/rbldnsd +cd /var/rbldnsd printf -v O_BIND -- ' -b %s' ${BIND[@]} +printf -v O_ZONES -- "$ZONE:%s " `find -mindepth 2 -type f | awk -F/ '{printf "%s:%s/%s\n", $2, $2, $3}'` OPTIONS="-u rbldnsd:rbldnsd $OPTIONS" OPTIONS="-p /run/rbldnsd.pid $OPTIONS" @@ -11,9 +12,5 @@ OPTIONS="-t $TTL $OPTIONS" OPTIONS="-c $CHECK_TIME $OPTIONS" OPTIONS="-r /var/rbldnsd $OPTIONS" -cd /var/rbldnsd - -printf -v O_ZONES -- "$ZONE:%s " `find -mindepth 2 -type f | awk -F/ '{printf "%s:%s/%s\n", $2, $2, $3}'` - exec /usr/lib/rbldnsd/rbldnsd $O_BIND $OPTIONS $O_ZONES |