summaryrefslogtreecommitdiff
path: root/dns/bind98/files/named.in
diff options
context:
space:
mode:
Diffstat (limited to 'dns/bind98/files/named.in')
-rw-r--r--dns/bind98/files/named.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/dns/bind98/files/named.in b/dns/bind98/files/named.in
index 3fea471bf2c4..1411dfbe59b1 100644
--- a/dns/bind98/files/named.in
+++ b/dns/bind98/files/named.in
@@ -4,7 +4,7 @@
#
# PROVIDE: named
-# REQUIRE: FILESYSTEMS defaultroute
+# REQUIRE: FILESYSTEMS defaultroute ldconfig
# BEFORE: NETWORKING
# KEYWORD: shutdown
@@ -91,9 +91,9 @@ named_prestart()
warn 'named_pidfile: now determined from the conf file'
fi
- echo ${pidfile%/pid}
- if [ ! -d ${pidfile%/pid} ]; then
- install -d -o ${named_uid} -g ${named_uid} ${pidfile%/pid}
+ piddir=`/usr/bin/dirname ${pidfile}`
+ if [ ! -d ${piddir} ]; then
+ install -d -o ${named_uid} -g ${named_uid} ${piddir}
fi
command_args="-u ${named_uid:=root} -c $named_conf $command_args"