Skip to content

Conversation

@gdamjan
Copy link
Contributor

@gdamjan gdamjan commented Oct 13, 2018

roughly based on sd_notify() from systemd and https://github.com/bb4242/sdnotify

only implements READY=1 and STATUS=Gunicorn arbiter booted of the
protocol in the arbiter. in the future, reloads can be notified, and
possibly also other statuses.

see https://www.freedesktop.org/software/systemd/man/sd_notify.html for
more info

sd_notify() is a noop when not run in a systemd service (i.e
NOTIFY_SOCKET environment variable is not set)

roughly based on sd_notify() from systemd and https://github.com/bb4242/sdnotify

only implements `READY=1` and `STATUS=Gunicorn arbiter booted` of the
protocol in the arbiter. in the future, reloads can be notified, and
possibly also other statuses.

see https://www.freedesktop.org/software/systemd/man/sd_notify.html for
more info

sd_notify() is a noop when not run in a systemd service (i.e
NOTIFY_SOCKET environment variable is not set)
@gdamjan
Copy link
Contributor Author

gdamjan commented Oct 13, 2018

tested with python 3.5 on debian stable

@funkyfuture
Copy link

funkyfuture commented Oct 22, 2018

this is superb. this solves the issue addressed in #1895 without the need to move the socket out of /run/app_namespace/ and also stops restarting the service continuously after the timeout period.

Copy link
Collaborator

@tilgovi tilgovi left a comment

Choose a reason for hiding this comment

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

I think this looks great, though I'm not familiar with sd_notify.

@benoitc
Copy link
Owner

benoitc commented Jan 10, 2019

@gdamjan ping :)

@benoitc benoitc added this to the 20.0 milestone Jan 10, 2019
@benoitc benoitc merged commit 9184ae8 into benoitc:master Jan 11, 2019
@benoitc
Copy link
Owner

benoitc commented Jan 11, 2019

merged, thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants