Ticket #6903: bind.diff

File bind.diff, 850 bytes (added by anonymous, 8 years ago)
  • feeds/packages/net/bind/files/named.init

     
    22START=50 
    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 
    1015  /usr/sbin/named -c $config_file 
     
    2126  then 
    2227    kill `cat $pid_file` 
    2328 
    24     if [ $? -eq 0 ] 
     29    if [ $? -ne 0 ] 
    2530    then 
    2631      echo "  PID " `cat $pid_file` not found 
    2732      echo "  Is the named server running?" 
    2833    fi 
    2934 
    30     rm $pid_file 
     35    rm -f $pid_file 
    3136 
    3237    else 
    3338    echo "  $pid_file not found"