From 001230e155646400412782a41dbb8d67b6b40226 Mon Sep 17 00:00:00 2001 From: Jiri Popelka Date: Tue, 17 Sep 2013 14:24:40 +0200 Subject: [PATCH] 12-dhcpd: wait a few seconds before restarting services (#1003695) --- 12-dhcpd | 4 ++++ dhcp.spec | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/12-dhcpd b/12-dhcpd index 12282f1..7c2ebc6 100644 --- a/12-dhcpd +++ b/12-dhcpd @@ -5,6 +5,10 @@ STATUS=$2 # The new state of the interface # whenever interface is brought up by NM (rhbz #565921) if [ "$STATUS" = "up" ]; then + # wait a few seconds to allow interface startup to complete + # (important at boot time without this the service still fails + # 2 seconds is too short, 5 seconds works - davebooth) + sleep 5 # restart the services systemctl -q is-enabled dhcpd.service && systemctl restart dhcpd.service systemctl -q is-enabled dhcpd6.service && systemctl restart dhcpd6.service diff --git a/dhcp.spec b/dhcp.spec index f6c2d41..c0e2196 100644 --- a/dhcp.spec +++ b/dhcp.spec @@ -18,7 +18,7 @@ Summary: Dynamic host configuration protocol software Name: dhcp Version: 4.2.5 -Release: 20%{?dist} +Release: 21%{?dist} # NEVER CHANGE THE EPOCH on this package. The previous maintainer (prior to # dcantrell maintaining the package) made incorrect use of the epoch and # that's why it is at 12 now. It should have never been used, but it was. @@ -615,6 +615,9 @@ done %changelog +* Tue Sep 17 2013 Jiri Popelka - 12:4.2.5-21 +- 12-dhcpd: wait a few seconds before restarting services (#1003695) + * Thu Sep 12 2013 Jiri Popelka - 12:4.2.5-20 - bind DHCPv6 client to link-local address instead of 0 address (#1001742)