Skip to content

Commit

Permalink
[dhcp_relay] Add extra sleep before starting relay agent processes (s…
Browse files Browse the repository at this point in the history
  • Loading branch information
jleveque authored and zhenggen-xu committed Jan 9, 2020
1 parent dced3cd commit 183223b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dockers/docker-dhcp-relay/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 183223b

Please sign in to comment.