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

[swss.sh] When starting, call 'systemctl restart' on dependents, not 'systemctl start' #3807

Merged
merged 1 commit into from
Nov 23, 2019
Merged

[swss.sh] When starting, call 'systemctl restart' on dependents, not 'systemctl start' #3807

merged 1 commit into from
Nov 23, 2019

Conversation

jleveque
Copy link
Contributor

- What I did

When SwSS starts in non-warm-boot mode, it also starts its dependent services (currently radv and teamd). Previously, it did so by calling systemctl start. However, in the case that the dependent services had not previously been stopped, systemctl start would basically become a no-op, as it would see the service(s) were already started and do nothing. However, the expected behavior is for the dependent services to start anew, thus this patch changes the behavior to calling systemctl restart, which will first stop the dependent services if they are already running, then start them.

Copy link
Contributor

@renukamanavalan renukamanavalan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you Joe.

@yxieca yxieca merged commit 351410e into sonic-net:master Nov 23, 2019
@jleveque jleveque deleted the swss_restart_dependents branch November 23, 2019 19:59
yxieca pushed a commit that referenced this pull request Nov 24, 2019
yxieca added a commit that referenced this pull request Dec 2, 2019
yxieca added a commit that referenced this pull request Dec 2, 2019
yxieca added a commit that referenced this pull request Dec 2, 2019
abdosi pushed a commit that referenced this pull request Jan 3, 2020
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.

3 participants