util.startup: Support systemd Type=notify service type

This lets Prosody report its lifecycle status to systemd, so it knows
when Prosody has completed its startup, when it's reloading and shutting
down.

Both Type=notify and Type=notify-reload is supported

Example systemd .service configuration snippet:

[Service]
Type=notify
This commit is contained in:
Kim Alvefur 2024-04-04 19:00:27 +02:00
parent 221f86f77f
commit 502b8d3998
2 changed files with 35 additions and 0 deletions

View file

@ -66,6 +66,7 @@ TRUNK
- Intervals of mod_cron managed periodic jobs made configurable
- When mod_smacks is enabled, s2s connections not responding to ack requests are closed.
- Arguments to `prosodyctl shell` that start with ':' are now turned into method calls
- Support for Type=notify and notify-reload systemd service type added
## Removed