Changeset 7125


Ignore:
Timestamp:
2007-05-07T18:27:44+02:00 (11 years ago)
Author:
florian
Message:

Use an init script that will start named, not dhcpd (#1627)

File:
1 edited

Legend:

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

    r5449 r7125  
    11#!/bin/sh /etc/rc.common 
    22 
    3 lease_file=/tmp/dhcpd.leases 
    4 config_file=/etc/dhcpd.conf 
    5 pid_file=/var/run/dhcpd.pid 
     3config_file=/etc/bind/named.conf 
     4pid_file=/var/run/named.pid 
    65 
    76start() { 
    8   echo Starting isc-dhcpd 
     7  echo Starting isc-bind 
    98 
    10   if [ ! -e $lease_file ]; then 
    11     echo "  Creating $lease_file" 
    12     touch $lease_file 
    13   fi 
    14  
    15   /usr/sbin/dhcpd -cf $config_file -lf $lease_file 
     9  /usr/sbin/named -c $config_file 
    1610 
    1711  if [ $$ -eq 0 ] 
    1812  then 
    19     echo "  isc-dhcpd failed to start" 
     13    echo "  isc-bind failed to start" 
    2014  fi 
    2115} 
    2216 
    2317stop() { 
    24   echo "Stopping isc-dhcpd" 
     18  echo "Stopping isc-bind" 
    2519  if [ -e $pid_file ] 
    2620  then 
     
    3024    then 
    3125      echo "  PID " `cat $pid_file` not found 
    32       echo "  Is the DHCP server running?" 
     26      echo "  Is the named server running?" 
    3327    fi 
    3428 
Note: See TracChangeset for help on using the changeset viewer.