Changeset 20379


Ignore:
Timestamp:
2010-03-23T02:43:31+01:00 (8 years ago)
Author:
thepeople
Message:

This patch fixes wrong error checking in stop() and adds checking for already running named, from #6903

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/bind/files/named.init

    r17024 r20379  
    33 
    44config_file=/etc/bind/named.conf 
    5 pid_file=/var/run/named/named.pid 
     5pid_file=/var/run/named.pid 
    66 
    77start() { 
     8  if [ -e $pid_file ] 
     9  then 
     10     echo "  named already running with PID `cat $pid_file`" 
     11     return 1 
     12  fi 
    813  echo Starting isc-bind 
    914 
     
    2227    kill `cat $pid_file` 
    2328 
    24     if [ $? -eq 0 ] 
     29    if [ $? -ne 0 ] 
    2530    then 
    2631      echo "  PID " `cat $pid_file` not found 
     
    2833    fi 
    2934 
    30     rm $pid_file 
     35    rm -f $pid_file 
    3136 
    3237    else 
Note: See TracChangeset for help on using the changeset viewer.