Ignore:
Timestamp:
2008-08-28T17:38:13+02:00 (8 years ago)
Author:
florian
Message:

Fix dhcp initscript logic to handle failures properly (#3941)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/dhcp/files/dhcpd.init

    r10520 r12425  
    1616        /usr/sbin/dhcpd -q -cf $config_file -lf $lease_file 
    1717         
    18         if [ $? -eq 0 ]; then 
     18        if [ $? -ne 0 ]; then 
    1919                echo "  isc-dhcpd failed to start" 
    2020        fi 
     
    2626                kill `cat $pid_file` 
    2727 
    28                 if [ $? -eq 0 ]; then 
     28                if [ $? -ne 0 ]; then 
    2929                        echo "  PID " `cat $pid_file` not found 
    3030                        echo "  Is the DHCP server running?" 
Note: See TracChangeset for help on using the changeset viewer.