Skip to content

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

Merged
yxieca merged 1 commit intosonic-net:masterfrom
jleveque:swss_restart_dependents
Nov 23, 2019
Merged

[swss.sh] When starting, call 'systemctl restart' on dependents, not 'systemctl start'#3807
yxieca merged 1 commit intosonic-net:masterfrom
jleveque:swss_restart_dependents

Conversation

@jleveque
Copy link
Copy Markdown
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
Copy Markdown
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
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
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