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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.