Skip to content

cmd/dockerd: sd_notify STOPPING=1 when shutting down#41832

Merged
AkihiroSuda merged 1 commit into
moby:masterfrom
thaJeztah:sd_notify_stopping
Dec 22, 2020
Merged

cmd/dockerd: sd_notify STOPPING=1 when shutting down#41832
AkihiroSuda merged 1 commit into
moby:masterfrom
thaJeztah:sd_notify_stopping

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

Signal systemd when we start shutting down to complement the "READY" notify
that was originally implemented in 97088eb (#3060; related to #2322)

From sd_notify(3)

STOPPING=1
Tells the service manager that the service is beginning its shutdown. This is useful
to allow the service manager to track the service's internal state, and present it to
the user.

- Description for the changelog

- systemd: send sd_notify STOPPING=1 when shutting down

- A picture of a cute animal (not mandatory but encouraged)

Signal systemd when we start shutting down to complement the "READY" notify
that was originally implemented in 97088eb

From [sd_notify(3)](https://www.freedesktop.org/software/systemd/man/sd_notify.html#STOPPING=1)

> STOPPING=1
> Tells the service manager that the service is beginning its shutdown. This is useful
> to allow the service manager to track the service's internal state, and present it to
> the user.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah added status/2-code-review kind/enhancement Enhancements are not bugs or new features but can improve usability or performance. area/systemd labels Dec 22, 2020

@tianon tianon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@AkihiroSuda
AkihiroSuda merged commit d9a9aee into moby:master Dec 22, 2020
@thaJeztah
thaJeztah deleted the sd_notify_stopping branch December 22, 2020 19:09
@thaJeztah thaJeztah added this to the 20.10.2 milestone Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/systemd impact/changelog kind/enhancement Enhancements are not bugs or new features but can improve usability or performance. status/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants