Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[services] Remove explicit dependencies from dhcp_relay service file, control in swss.sh #3823

Merged
merged 1 commit into from
Nov 27, 2019
Merged

[services] Remove explicit dependencies from dhcp_relay service file, control in swss.sh #3823

merged 1 commit into from
Nov 27, 2019

Conversation

jleveque
Copy link
Contributor

Remove swss and teamd services from both the Requires= and WantedBy= fields of the dhcp_relay service file, and instead control the dhcp_relay service from the swss.sh script along with the teamd and radv services.

Removing the services from Requires= field will prevent dhcp_relay from automatically starting teamd when it is started (in case it gets started while teamd is supposed to be shut down), and removing the services from the WantedBy= field will prevent dhcp_relay getting started by systemd if swss or teamd get started. Instead, dhcp_relay will only be started by the swss.sh script in the proper order, ensuring that teamd is always started before dhcp_relay.

@jleveque
Copy link
Contributor Author

Retest vsimage please

1 similar comment
@jleveque
Copy link
Contributor Author

Retest vsimage please

@yxieca yxieca merged commit 5e6f8ad into sonic-net:master Nov 27, 2019
@jleveque jleveque deleted the dhcp_relay_swss_sh branch November 27, 2019 01:12
yxieca pushed a commit that referenced this pull request Nov 27, 2019
zhenggen-xu pushed a commit to zhenggen-xu/sonic-buildimage that referenced this pull request Jan 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants