-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[supervisord] implement sd_notify
#24191
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
base: master
Are you sure you want to change the base?
[supervisord] implement sd_notify
#24191
Conversation
Signed-off-by: Stepan Blyschak <[email protected]>
Signed-off-by: Stepan Blyschak <[email protected]>
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
| From: Stepan Blyschak <[email protected]> | ||
| Date: Mon, 29 Sep 2025 14:09:22 +0000 | ||
| Subject: [PATCH] Implement SD_NOTIFY | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you submit (just submit) a PR to https://github.com/Supervisor/supervisor ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Submitted Supervisor/supervisor#1699
| + def close_notify_socket(self): | ||
| + if self.notify_sock is None: | ||
| + return | ||
| + self.notify_sock.close() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will you self.notify_sock = None after close it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
| url = https://github.com/Marvell-switching/mrvl-teralynx.git | ||
| [submodule "src/supervisor"] | ||
| path = src/supervisor | ||
| url = https://github.com/Supervisor/supervisor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why needed, I pin submodule to specific commit
Signed-off-by: Stepan Blyschak <[email protected]>
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@StormLiangMS Can this be used a a sync mechanism between FRR and bgpcfgd to address #23938? |
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@qiluo-msft can you please approve so i can merge? i want it to get to 202511 before it is branched out. |
DEPENDS ON #24190
Why I did it
Most Linux daemons support notifying init (usually systemd) about readiness. This is when systemd makes the process enter Started state. This is useful as sync mechanism between deamons.
We do have similar use cases for SONiC with supervisord. But in supervisord this works only with startsecs delay. This partially addresses #13765
Work item tracking
How I did it
Implemented
sd_notifyHow to verify it
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)