Browse Source

Merge pull request #17037 from pprindeville/named-create-run-dir

bind: created /var/run/named directory
lilik-openwrt-22.03
Philip Prindeville 3 years ago
committed by GitHub
parent
commit
38b87f4ff9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      net/bind/files/named.init

+ 7
- 1
net/bind/files/named.init View File

@ -21,7 +21,6 @@ dyndir=/tmp/bind
conf_local_file=$dyndir/named.conf.local
fix_perms() {
for dir in $libdir $logdir $cachedir $dyndir; do
test -e "$dir" || {
@ -41,6 +40,13 @@ start_service() {
group_exists bind 57 || group_add bind 57
fix_perms
local runnamed=$(dirname $pid_file)
# with dropped privileges, we need this created for us
[ -d $runnamed ] || {
mkdir -m 0755 $runnamed
chown bind.bind $runnamed
}
rndc-confgen > $rndc_temp
sed -r -n \


Loading…
Cancel
Save