aboutsummaryrefslogtreecommitdiff
path: root/dns/bind98/files/named
diff options
context:
space:
mode:
Diffstat (limited to 'dns/bind98/files/named')
-rw-r--r--dns/bind98/files/named6
1 files changed, 6 insertions, 0 deletions
diff --git a/dns/bind98/files/named b/dns/bind98/files/named
index bda049462f92..20e94d021a1d 100644
--- a/dns/bind98/files/named
+++ b/dns/bind98/files/named
@@ -92,6 +92,12 @@ named_prestart()
warn 'named_pidfile: now determined from the conf file'
fi
+ echo ${pidfile%/pid}
+ if [ ! -d ${pidfile%/pid} ]; then
+ mkdir -p ${pidfile%/pid}
+ chown ${named_uid}:${named_uid} ${pidfile%/pid}
+ fi
+
command_args="-u ${named_uid:=root}"
if [ ! "$named_conf" = '/etc/namedb/named.conf' ]; then