Lines 29-47
Link Here
|
29 |
|
29 |
|
30 |
case "$1" in |
30 |
case "$1" in |
31 |
start) |
31 |
start) |
32 |
# dirs under /var/run can go away on reboots. |
|
|
33 |
mkdir -p /var/run/named |
34 |
chmod 775 /var/run/named |
35 |
chown root:bind /var/run/named >/dev/null 2>&1 || true |
36 |
|
37 |
PATH=/sbin:/bin:/usr/sbin:/usr/bin |
32 |
PATH=/sbin:/bin:/usr/sbin:/usr/bin |
38 |
debug_level="$(ucr get dns/debug/level)" |
33 |
debug_level="$(ucr get dns/debug/level)" |
39 |
test -z $debug_level && debug_level=0 |
34 |
test -z $debug_level && debug_level=0 |
40 |
|
35 |
|
41 |
# bind is running as root when using s4 as backend. |
|
|
42 |
# To open the rndc port, the rndc.key must be owned by root. |
43 |
chown root:root /etc/bind/rndc.key |
44 |
|
45 |
if [ "$(uname -m)" = "x86_64" ]; then |
36 |
if [ "$(uname -m)" = "x86_64" ]; then |
46 |
export LDB_MODULES_PATH=/usr/lib/x86_64-linux-gnu/ldb/ |
37 |
export LDB_MODULES_PATH=/usr/lib/x86_64-linux-gnu/ldb/ |
47 |
else |
38 |
else |
48 |
- |
|
|