X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=named.init;h=d94131ebd679b2bd6517f1d01b65f673de555b45;hb=7f3952fced34d51f7cfd7ce2c225464c522ed58f;hp=ec0414d33cb9769198ca7c84728b0e14de822bb5;hpb=19e15e8f1e7f81fe67adef4b38b13530e06fdba9;p=packages%2Fbind.git diff --git a/named.init b/named.init index ec0414d..d94131e 100644 --- a/named.init +++ b/named.init @@ -3,7 +3,7 @@ # named This shell script takes care of starting and stopping # named (BIND DNS server). # -# chkconfig: 345 14 89 +# chkconfig: 345 11 89 # # description: named (BIND) is a Domain Name Server (DNS) \ # that is used to resolve host names to IP addresses. @@ -40,11 +40,12 @@ start() { # Check if the service is already running? if [ ! -f /var/lock/subsys/named ]; then msg_starting "Named" - [ -f /etc/localtime ] && cp -a /etc/localtime $CHROOT_TO_DIR/etc/localtime + modprobe -s capability > /dev/null 2>&1 + [ -f /etc/localtime ] && cp -puL /etc/localtime $CHROOT_TO_DIR/etc/localtime touch $CHROOT_TO_DIR/named.log && \ chown named:named $CHROOT_TO_DIR/named.log - daemon named -u named -t $CHROOT_TO_DIR \ - -c /etc/named.conf $NAMED_OPT /dev/null 2>&1 else msg_not_running "Named" @@ -66,10 +67,10 @@ RETVAL=0 # See how we were called. case "$1" in start) - start + start ;; stop) - stop + stop ;; status) status named