summaryrefslogtreecommitdiff
path: root/extra/bind/named
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-11-19 02:25:52 -0800
committerroot <root@rshg054.dnsready.net>2012-11-19 02:25:52 -0800
commit705d29694fd61c47a57ccec531e73d87a2960021 (patch)
tree55e2f9c5d4ed72e92b4d249f51760cfbd53d3b80 /extra/bind/named
parentab63d8d49f68847a68c2ba0014bf0d3338cb3df6 (diff)
Mon Nov 19 02:22:26 PST 2012
Diffstat (limited to 'extra/bind/named')
-rwxr-xr-xextra/bind/named5
1 files changed, 1 insertions, 4 deletions
diff --git a/extra/bind/named b/extra/bind/named
index 7907f9983..65dd0fe82 100755
--- a/extra/bind/named
+++ b/extra/bind/named
@@ -4,10 +4,7 @@
. /etc/rc.d/functions
. /etc/conf.d/named
-[[ -d /var/run/named ]] || mkdir -p /var/run/named
-chown named:named /var/run/named
-
-PIDFILE=/var/run/named/named.pid
+PIDFILE=/run/named/named.pid
PID=$(cat $PIDFILE 2>/dev/null)
readlink -q /proc/$PID/exe | grep -q '^/usr/sbin/named' || { PID=; rm $PIDFILE 2>/dev/null; }