12-dhcpd: wait a few seconds before restarting services (#1003695)

This commit is contained in:
Jiri Popelka 2013-09-17 14:24:40 +02:00
parent 077cc7630b
commit 001230e155
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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 <jpopelka@redhat.com> - 12:4.2.5-21
- 12-dhcpd: wait a few seconds before restarting services (#1003695)
* Thu Sep 12 2013 Jiri Popelka <jpopelka@redhat.com> - 12:4.2.5-20
- bind DHCPv6 client to link-local address instead of 0 address (#1001742)