back off the matrix daemon's restarts so a homeserver outage can't flood the store with logins
This commit is contained in:
parent
81a57a9f81
commit
2eb46c562b
1 changed files with 17 additions and 0 deletions
|
|
@ -168,6 +168,16 @@ let
|
|||
ok =
|
||||
agentMatrixBao.systemd.timers.hive-matrix-daemon.timerConfig.OnUnitInactiveSec or null == "5min";
|
||||
}
|
||||
{
|
||||
# A homeserver outage fails every start, and each start logs in to the
|
||||
# store: the restart delay must grow rather than stay at `RestartSec`.
|
||||
name = "the matrix daemon backs off between restarts";
|
||||
ok =
|
||||
let
|
||||
c = (daemon agentMatrixBao).serviceConfig;
|
||||
in
|
||||
c.RestartSteps or 0 > 0 && c.RestartMaxDelaySec or 0 > c.RestartSec;
|
||||
}
|
||||
{
|
||||
# The absence arm for the four above: with no store, no identity, no
|
||||
# timer, and the file is the whole mechanism.
|
||||
|
|
|
|||
Loading…
Reference in a new issue