[swss.sh] When starting, call 'systemctl restart' on dependents, not 'systemctl start'#3807
Merged
yxieca merged 1 commit intosonic-net:masterfrom Nov 23, 2019
jleveque:swss_restart_dependents
Merged
[swss.sh] When starting, call 'systemctl restart' on dependents, not 'systemctl start'#3807yxieca merged 1 commit intosonic-net:masterfrom jleveque:swss_restart_dependents
yxieca merged 1 commit intosonic-net:masterfrom
jleveque:swss_restart_dependents
Conversation
'systemctl start'
yxieca
approved these changes
Nov 23, 2019
zhenggen-xu
pushed a commit
to zhenggen-xu/sonic-buildimage
that referenced
this pull request
Jan 10, 2020
vivekrnv
pushed a commit
to vivekrnv/sonic-buildimage
that referenced
this pull request
Mar 24, 2025
…atically (sonic-net#916) #### Why I did it src/sonic-utilities ``` * 36ba067f - (HEAD -> 202412, origin/202412) Merge pull request sonic-net#156 from mssonicbld/sonicbld/202412-merge (11 hours ago) [mssonicbld] * dcf62147 - Merge branch '202411' of https://github.com/sonic-net/sonic-utilities into 202412 (16 hours ago) [Sonic Automation] * b197a610 - [db_migrator] Migrate tunnel table (sonic-net#3806) (4 days ago) [mssonicbld] * 5b765f3f - [GCU] Add data acl table and rule check (sonic-net#3807) (4 days ago) [mssonicbld] * 04bc01d9 - [Techsupport]Add show route-map command to frr dumps in techsupport (sonic-net#3803) (5 days ago) [mssonicbld] * 7a3f4ad6 - Fix the interface name length validation for subinterface (sonic-net#3799) (7 days ago) [mssonicbld] * 357f95d3 - enable pfcwd for backplane ports (sonic-net#3796) (11 days ago) [mssonicbld] * 7f316e7c - revert YANG check in db_migrator (sonic-net#3794) (12 days ago) [mssonicbld] * c01a4f5f - Add namespace support for show interface neighbor expected (sonic-net#3790) (2 weeks ago) [mssonicbld] * 17a7b18b - Fix `vnet_route_check` for active and inactive routes, add `--all` option (sonic-net#3780) (3 weeks ago) [mssonicbld] * 5cc10123 - [202411][FC] remove FC delay field (sonic-net#3768) (3 weeks ago) [Stepan Blyshchak] * 8ceba38b - [QOS] Skip showing unnecessary warning message (sonic-net#3762) (5 weeks ago) [mssonicbld] * 04b60e22 - Fix call for spanning-tree commands in dump script (sonic-net#3752) (6 weeks ago) [mssonicbld] * bbe29aee - [show][interface] Add changes for show interface errors command (sonic-net#3749) (6 weeks ago) [mssonicbld] ``` #### How I did it #### How to verify it #### Description for the changelog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
- 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 startwould 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 callingsystemctl restart, which will first stop the dependent services if they are already running, then start them.