use incrementing auto-restart delay

This commit is contained in:
Daniel Micay 2024-09-15 00:19:19 -04:00
parent 76c1ae3aaf
commit ea3d577ac6
2 changed files with 6 additions and 0 deletions

View File

@ -1,2 +1,5 @@
[Service] [Service]
Restart=always Restart=always
RestartMaxDelaySec=10s
RestartSec=100ms
RestartSteps=5

View File

@ -16,6 +16,9 @@ ProtectProc=invisible
ProtectSystem=strict ProtectSystem=strict
ReadWritePaths=/var/lib/nginx /var/log/nginx -/var/cache/nginx ReadWritePaths=/var/lib/nginx /var/log/nginx -/var/cache/nginx
Restart=always Restart=always
RestartMaxDelaySec=10s
RestartSec=100ms
RestartSteps=5
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
RestrictNamespaces=true RestrictNamespaces=true
RestrictRealtime=true RestrictRealtime=true