package/dhcp: remove sleep from SysV init scripts restart
authorBenoît Thébaudeau <benoit@wsystem.com>
Sun, 25 Oct 2015 00:59:34 +0000 (02:59 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 24 Dec 2015 14:06:47 +0000 (15:06 +0100)
No sleep is required for the restart and force-reload operations to
succeed.

Signed-off-by: Benoît Thébaudeau <benoit@wsystem.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/dhcp/S80dhcp-relay
package/dhcp/S80dhcp-server

index 6493eda631c30d2739f9471c5d5af6c4575b3dd9..211431bfff2830ad254f597e7f5d841c1646c99c 100755 (executable)
@@ -43,7 +43,6 @@ case "$1" in
                ;;
        restart | force-reload)
                $0 stop
-               sleep 2
                $0 start
                ;;
        *)
index f4e220986f864f5c7444706608429fe62f871de9..21092bab9f863ded320bf51a37fa3f201475a80d 100755 (executable)
@@ -36,7 +36,6 @@ case "$1" in
                ;;
        restart | force-reload)
                $0 stop
-               sleep 2
                $0 start
                if [ "$?" != "0" ]; then
                        exit 1