mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-05-16 13:42:32 -04:00
auto-restart nginx if master process is killed
nginx handles restarting workers automatically but the master process is typically killed by the OOM killer too.
This commit is contained in:
parent
320ad2e3a8
commit
36423fb2bc
1 changed files with 2 additions and 0 deletions
|
@ -17,6 +17,8 @@ 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
|
||||||
RemoveIPC=true
|
RemoveIPC=true
|
||||||
|
Restart=always
|
||||||
|
RestartSec=1
|
||||||
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
|
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
|
||||||
RestrictNamespaces=true
|
RestrictNamespaces=true
|
||||||
RestrictRealtime=true
|
RestrictRealtime=true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue