diff options
author | root <root@rshg047.dnsready.net> | 2011-05-25 22:48:05 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-05-25 22:48:05 +0000 |
commit | 6e35be4b44d90f92ddceb8b067cbbf03fc652a35 (patch) | |
tree | 5a27309f3fe126e49f5a2f08f08b2526bc8d4dc2 /extra/bind/named | |
parent | 363d953113a327863013a9422c8212654a86a209 (diff) |
Wed May 25 22:48:05 UTC 2011
Diffstat (limited to 'extra/bind/named')
-rwxr-xr-x | extra/bind/named | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/extra/bind/named b/extra/bind/named index 3be558f27..7907f9983 100755 --- a/extra/bind/named +++ b/extra/bind/named @@ -1,12 +1,16 @@ #!/bin/bash -NAMED_ARGS= -[ -f /etc/conf.d/named ] && . /etc/conf.d/named - . /etc/rc.conf . /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 +PID=$(cat $PIDFILE 2>/dev/null) +readlink -q /proc/$PID/exe | grep -q '^/usr/sbin/named' || { PID=; rm $PIDFILE 2>/dev/null; } -PID=`pidof -o %PPID /usr/sbin/named` case "$1" in start) stat_busy "Starting BIND" |