2012-10-19 09:39:44 +02:00
|
|
|
[Unit]
|
|
|
|
Description=The nginx HTTP and reverse proxy server
|
2019-12-30 05:22:56 +01:00
|
|
|
After=network-online.target remote-fs.target nss-lookup.target
|
|
|
|
Wants=network-online.target
|
2012-10-19 09:39:44 +02:00
|
|
|
|
|
|
|
[Service]
|
2015-10-16 17:10:00 +02:00
|
|
|
PIDFile=/run/nginx.pid
|
2012-10-19 09:39:44 +02:00
|
|
|
ExecStartPre=/usr/sbin/nginx -t
|
2014-01-30 07:19:31 +01:00
|
|
|
ExecStart=/usr/sbin/nginx -g "daemon off;"
|
2012-10-19 09:39:44 +02:00
|
|
|
ExecReload=/bin/kill -s HUP $MAINPID
|
2015-10-16 17:10:00 +02:00
|
|
|
KillSignal=SIGQUIT
|
|
|
|
TimeoutStopSec=5
|
|
|
|
KillMode=mixed
|
2014-01-30 07:19:31 +01:00
|
|
|
PrivateTmp=true
|
2021-10-12 16:29:14 +02:00
|
|
|
# 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
|
2012-10-19 09:39:44 +02:00
|
|
|
|
|
|
|
[Install]
|
2015-10-16 17:10:00 +02:00
|
|
|
WantedBy=multi-user.target
|