Changeset 20814


Ignore:
Timestamp:
2010-04-11T23:07:54+02:00 (7 years ago)
Author:
florian
Message:

[package] fix killing and starting of dhcp (#6919)

Location:
packages/net/dhcp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/dhcp/Makefile

    r16438 r20814  
    1010PKG_NAME:=dhcp 
    1111PKG_VERSION:=3.1.0 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
  • packages/net/dhcp/files/dhcpd.init

    r12425 r20814  
    77 
    88start() { 
     9        if [ -e $pid_file ] ; then 
     10            echo "  dhcpd already running with PID `cat $pid_file`" 
     11            return 1 
     12        fi 
     13 
    914        echo Starting isc-dhcpd 
    1015 
     
    2429        echo "Stopping isc-dhcpd" 
    2530        if [ -e $pid_file ]; then 
    26                 kill `cat $pid_file` 
     31                kill -KILL `cat $pid_file` 
    2732 
    2833                if [ $? -ne 0 ]; then 
     
    3136                fi 
    3237         
    33                 rm $pid_file 
     38                rm -f $pid_file 
    3439        else 
    3540                echo "  $pid_file not found" 
Note: See TracChangeset for help on using the changeset viewer.