diff --git a/systemd/system/matterbridge.service.d/local.conf b/systemd/system/matterbridge.service.d/local.conf index 5a696ae..00cd15f 100644 --- a/systemd/system/matterbridge.service.d/local.conf +++ b/systemd/system/matterbridge.service.d/local.conf @@ -7,3 +7,6 @@ RemoveIPC=true ProcSubset=pid ProtectProc=invisible Restart=always +RestartMaxDelaySec=10s +RestartSec=100ms +RestartSteps=5 diff --git a/systemd/system/mjolnir.service b/systemd/system/mjolnir.service index c14ef8d..9cbfe2f 100644 --- a/systemd/system/mjolnir.service +++ b/systemd/system/mjolnir.service @@ -27,7 +27,9 @@ ProtectSystem=strict ReadWritePaths=/var/lib/mjolnir RemoveIPC=true Restart=always -RestartSec=5s +RestartMaxDelaySec=10s +RestartSec=100ms +RestartSteps=5 RestrictAddressFamilies=AF_INET6 RestrictNamespaces=true RestrictRealtime=true diff --git a/systemd/system/postgresql.service.d/local.conf b/systemd/system/postgresql.service.d/local.conf index 8a764e3..df7dad1 100644 --- a/systemd/system/postgresql.service.d/local.conf +++ b/systemd/system/postgresql.service.d/local.conf @@ -1,2 +1,5 @@ [Service] Restart=always +RestartMaxDelaySec=10s +RestartSec=100ms +RestartSteps=5