]> git.pld-linux.org Git - packages/dhcp.git/blobdiff - dhcp6.init
- fix lockfile
[packages/dhcp.git] / dhcp6.init
index 5031e28b61ed6993ef95325d4c305bdbd3e1b4b4..a22261e5801b3eb5f46f727c08608de9ad6788cb 100644 (file)
@@ -87,7 +87,7 @@ checkconfig() {
 
 start() {
        # Check if the service is already running?
-       if [ -f /var/lock/subsys/dhcpd ]; then
+       if [ -f /var/lock/subsys/dhcpd6 ]; then
                msg_already_running "DHCP IPv6 Server"
                return
        fi
@@ -96,22 +96,22 @@ start() {
        msg_starting "DHCP IPv6 Server"
        daemon /sbin/dhcpd -6 -pf /var/run/dhpcd6.pid -q $DHCPD_INTERFACES
        RETVAL=$?
-       [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dhcpd
+       [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dhcpd6
 }
 
 stop() {
-       if [ ! -f /var/lock/subsys/dhcpd ]; then
+       if [ ! -f /var/lock/subsys/dhcpd6 ]; then
                msg_not_running "DHCP IPv6 Server"
                return
        fi
 
        msg_stopping "DHCP IPv6 Server"
        killproc --pidfile /var/run/dhcpd6.pid dhcpd
-       rm -f /var/run/dhcpd6.pid /var/lock/subsys/dhcpd >/dev/null 2>&1
+       rm -f /var/run/dhcpd6.pid /var/lock/subsys/dhcpd6 >/dev/null 2>&1
 }
 
 condrestart() {
-       if [ ! -f /var/lock/subsys/dhcpd ]; then
+       if [ ! -f /var/lock/subsys/dhcpd6 ]; then
                msg_not_running "DHCP IPv6 Server"
                RETVAL=$1
                return
This page took 0.025203 seconds and 4 git commands to generate.