]> git.pld-linux.org Git - packages/dhcp.git/commitdiff
- use same lockname (/var/lock/subsys/*) as initscript name
authorsaq <saq@pld-linux.org>
Wed, 25 Jul 2001 16:19:26 +0000 (16:19 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
(/etc/rc.d/init.d/*).

Changed files:
    dhcp-relay.init -> 1.11

dhcp-relay.init

index 2cae40c875237735ecc2b15b875e8ba8b5244ec8..c67138a8ba19ed8d435de5b9083e38ee207ae28e 100644 (file)
@@ -28,11 +28,11 @@ fi
 case "$1" in
   start)
        # Check if the service is already running?
-       if [ ! -f /var/lock/subsys/dhcrelay ]; then
+       if [ ! -f /var/lock/subsys/dhcp-relay ]; then
                msg_starting "DHCP relay"
                daemon dhcrelay $OPTIONS $DHCP_SERVERS_IP
                RETVAL=$?
-               [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dhcrelay
+               [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dhcp-relay
        else
                msg_Already_Running "DHCP relay"
                exit 1
@@ -41,7 +41,7 @@ case "$1" in
   stop)
        msg_stopping "DHCP relay"
        killproc dhcrelay
-       rm -f /var/lock/subsys/dhcrelay
+       rm -f /var/lock/subsys/dhcp-relay
        ;;
   restart|reload)
        $0 stop
This page took 0.192758 seconds and 4 git commands to generate.