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
|
||||
ReadWritePaths=/var/lib/nginx /var/log/nginx -/var/cache/nginx
|
||||
RemoveIPC=true
|
||||
Restart=always
|
||||
RestartSec=1
|
||||
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
|
||||
RestrictNamespaces=true
|
||||
RestrictRealtime=true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue