aboutsummaryrefslogtreecommitdiffstats
path: root/dns/bind98
diff options
context:
space:
mode:
authorerwin <erwin@FreeBSD.org>2013-11-12 16:55:46 +0800
committererwin <erwin@FreeBSD.org>2013-11-12 16:55:46 +0800
commit9c1357b67119cdcfc458ac7b3478942fff6fd1c5 (patch)
tree3d286fe110426355b7f45766914fb7d418e9d693 /dns/bind98
parente5541d8b67374278fe1c1d2d40e5c68d3d886f55 (diff)
downloadfreebsd-ports-gnome-9c1357b67119cdcfc458ac7b3478942fff6fd1c5.tar.gz
freebsd-ports-gnome-9c1357b67119cdcfc458ac7b3478942fff6fd1c5.tar.zst
freebsd-ports-gnome-9c1357b67119cdcfc458ac7b3478942fff6fd1c5.zip
Create pid directory if it doesn't exist.
Diffstat (limited to 'dns/bind98')
-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