nginx/nginx.service
Илья Индиго 99174ed9d4 Accepting request 1167914 from home:13ilya
- Set RuntimeDirectory to offer a location for Unix sockets at /run/nginx

OBS-URL: https://build.opensuse.org/request/show/1167914
OBS-URL: https://build.opensuse.org/package/show/server:http/nginx?expand=0&rev=257
2024-04-16 06:03:19 +00:00

32 lines
802 B
Desktop File

[Unit]
Description=The nginx HTTP and reverse proxy server
After=network-online.target remote-fs.target nss-lookup.target
Wants=network-online.target
[Service]
RuntimeDirectory=nginx
PIDFile=/run/nginx.pid
ExecStartPre=/usr/sbin/nginx -t
ExecStart=/usr/sbin/nginx -g "daemon off;"
ExecReload=/bin/kill -s HUP $MAINPID
KillSignal=SIGQUIT
TimeoutStopSec=5
KillMode=mixed
PrivateTmp=true
# added automatically, for details please see
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
ProtectSystem=full
ProtectHome=read-only
PrivateDevices=true
ProtectHostname=true
ProtectClock=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectControlGroups=true
RestrictRealtime=true
# end of automatic additions
[Install]
WantedBy=multi-user.target