diff --git a/gunicorn/arbiter.py b/gunicorn/arbiter.py index cc137b5b1..49bebf0fe 100644 --- a/gunicorn/arbiter.py +++ b/gunicorn/arbiter.py @@ -348,6 +348,8 @@ def wakeup(self): def halt(self, reason=None, exit_status=0): """ halt arbiter """ + systemd.sd_notify("STOPPING=1\nSTATUS=Gunicorn shutting down..\n", self.log) + self.stop() log_func = self.log.info if exit_status == 0 else self.log.error