From 7622a30d98553288ca5cb53bb3b1eff210d40a77 Mon Sep 17 00:00:00 2001 From: Joe LeVeque Date: Tue, 26 Nov 2019 18:16:57 -0800 Subject: [PATCH] [dhcp_relay] Add extra sleep before starting relay agent processes (#3824) --- dockers/docker-dhcp-relay/start.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dockers/docker-dhcp-relay/start.sh b/dockers/docker-dhcp-relay/start.sh index 0ac5ea1a10..54e58dd42a 100755 --- a/dockers/docker-dhcp-relay/start.sh +++ b/dockers/docker-dhcp-relay/start.sh @@ -16,6 +16,12 @@ if [ $(supervisorctl status | grep -c "^isc-dhcp-relay:") -gt 0 ]; then # lifetime of the process. /usr/bin/wait_for_intf.sh + # Allow a bit more time for interfaces to settle before starting the + # relay agent processes. + # FIXME: Remove/decrease this once we determine how to prevent future race + # conditions here. + sleep 180 + # Start all DHCP relay agent(s) supervisorctl start isc-dhcp-relay:* fi