diff options
author | Andreas Oberritter <obi@saftware.de> | 2020-11-19 20:43:51 +0100 |
---|---|---|
committer | Andreas Oberritter <obi@saftware.de> | 2020-11-19 20:43:51 +0100 |
commit | 5c6ffaafd686e1448e2a7e92f70f8001e244bcfe (patch) | |
tree | d7b93d93bcd5cd01530280bccf5e022afe257631 /src/mod_s2s_dialback_opt.erl | |
parent | Provide name when pushing new roster item in shared roster group (#3427) (diff) |
Let systemd start ejabberd in foreground
Daemons started by systemd shouldn't fork into the background if
possible, because if multiple forked processes exist, systemd has
a hard time determining the main process ID.
In a memory constrained environment, the OOM killer may cause
ejabberd to exit without any trace. Because epmd keeps running,
systemd wouldn't notice the error condition, and as a result it
won't restart the server.
With ejabberd running in foreground, systemd is able to obtain the
correct exit code (137 in this case, instead of 0) and schedules a
restart. The administrator can then see what happend by looking at
systemctl status ejabberd.
Diffstat (limited to 'src/mod_s2s_dialback_opt.erl')
0 files changed, 0 insertions, 0 deletions