aboutsummaryrefslogtreecommitdiff
path: root/src/ejabberd_systemd.erl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ejabberd_systemd: Fix commentHolger Weiss2021-01-061-1/+1
|
* Integrate nicely with systemdHolger Weiss2021-01-061-0/+196
Support systemd's watchdog feature and enable it by default in the unit file, so that ejabberd is auto-restarted if the VM becomes unresponsive. Also, set the systemd startup type to 'notify', so that startup of followup units is delayed until ejabberd signals readiness. While at it, also notify systemd of configuration reload and shutdown states. Note: "NotifyAccess=all" is required as long as "ejabberdctl foreground" runs the VM as a new child process, rather than "exec"ing it. This way, systemd views the ejabberdctl process itself as the main service process, and would discard notifications from other processes by default.