]> git.pld-linux.org Git - packages/dhcdbd.git/commitdiff
- always remove lockfile. otherwise it's impossible to start daemon if stop fails...
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 25 Jul 2008 12:28:32 +0000 (12:28 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dhcdbd.init -> 1.7

dhcdbd.init

index e0e6cb3c992a29081fb6ca420d2f6172e2bf3ac7..65bf4bd5def81d0afeffbdcc462f8bc6eac8e932 100644 (file)
@@ -67,9 +67,11 @@ stop() {
                                /com/redhat/dhcp \
                                com.redhat.dhcp.quit >/dev/null 2>&1
                        if [ $? -eq 0 ]; then
-                               rm -f /var/lock/subsys/dhcdbd /var/run/dhcdbd.pid >/dev/null 2>&1
+                               ok
+                       else
+                               fail
                        fi
-                       ok
+                       rm -f /var/lock/subsys/dhcdbd /var/run/dhcdbd.pid >/dev/null 2>&1
                else
                        msg_not_running dhcdbd
                fi
This page took 0.0896 seconds and 4 git commands to generate.