12-dhcpd: wait a few seconds before restarting services (#1003695)
This commit is contained in:
parent
077cc7630b
commit
001230e155
4
12-dhcpd
4
12-dhcpd
@ -5,6 +5,10 @@ STATUS=$2 # The new state of the interface
|
|||||||
|
|
||||||
# whenever interface is brought up by NM (rhbz #565921)
|
# whenever interface is brought up by NM (rhbz #565921)
|
||||||
if [ "$STATUS" = "up" ]; then
|
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
|
# restart the services
|
||||||
systemctl -q is-enabled dhcpd.service && systemctl restart dhcpd.service
|
systemctl -q is-enabled dhcpd.service && systemctl restart dhcpd.service
|
||||||
systemctl -q is-enabled dhcpd6.service && systemctl restart dhcpd6.service
|
systemctl -q is-enabled dhcpd6.service && systemctl restart dhcpd6.service
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
Summary: Dynamic host configuration protocol software
|
Summary: Dynamic host configuration protocol software
|
||||||
Name: dhcp
|
Name: dhcp
|
||||||
Version: 4.2.5
|
Version: 4.2.5
|
||||||
Release: 20%{?dist}
|
Release: 21%{?dist}
|
||||||
# NEVER CHANGE THE EPOCH on this package. The previous maintainer (prior to
|
# NEVER CHANGE THE EPOCH on this package. The previous maintainer (prior to
|
||||||
# dcantrell maintaining the package) made incorrect use of the epoch and
|
# 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.
|
# that's why it is at 12 now. It should have never been used, but it was.
|
||||||
@ -615,6 +615,9 @@ done
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* 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)
|
- bind DHCPv6 client to link-local address instead of 0 address (#1001742)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user