From ea3d577ac64f0056837d244ad314c5bb9216f379 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sun, 15 Sep 2024 00:19:19 -0400 Subject: [PATCH] use incrementing auto-restart delay --- systemd/system/chronyd.service.d/local.conf | 3 +++ systemd/system/nginx.service.d/local.conf | 3 +++ 2 files changed, 6 insertions(+) diff --git a/systemd/system/chronyd.service.d/local.conf b/systemd/system/chronyd.service.d/local.conf index 8a764e3..df7dad1 100644 --- a/systemd/system/chronyd.service.d/local.conf +++ b/systemd/system/chronyd.service.d/local.conf @@ -1,2 +1,5 @@ [Service] Restart=always +RestartMaxDelaySec=10s +RestartSec=100ms +RestartSteps=5 diff --git a/systemd/system/nginx.service.d/local.conf b/systemd/system/nginx.service.d/local.conf index bf44550..80d8afb 100644 --- a/systemd/system/nginx.service.d/local.conf +++ b/systemd/system/nginx.service.d/local.conf @@ -16,6 +16,9 @@ ProtectProc=invisible ProtectSystem=strict ReadWritePaths=/var/lib/nginx /var/log/nginx -/var/cache/nginx Restart=always +RestartMaxDelaySec=10s +RestartSec=100ms +RestartSteps=5 RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX RestrictNamespaces=true RestrictRealtime=true