blob: 65408de56ab1d87c1d24688b238fee813cdf15df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/bash
declare -A SYNC
source /etc/conf.d/rbldnsd
printf -v O_BIND -- ' -b %s' ${BIND[@]}
OPTIONS="-u rbldnsd:rbldnsd $OPTIONS"
OPTIONS="-p /run/rbldnsd.pid $OPTIONS"
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
|