mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-01-10 22:29:29 -05: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
@ -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…
Reference in New Issue
Block a user