mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-01-25 12:56:54 -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
|
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…
Reference in New Issue
Block a user