diff --git a/systemd/system/nginx.service.d/local.conf b/systemd/system/nginx.service.d/local.conf index 0c662c1..c6b4dd2 100644 --- a/systemd/system/nginx.service.d/local.conf +++ b/systemd/system/nginx.service.d/local.conf @@ -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