nginx-cn/sources/nginx-cn.service
2024-03-25 05:47:42 -04:00

23 lines
490 B
Desktop File

[Unit]
Description=A high performance web server and a reverse proxy server
After=network-online.target remote-fs.target nss-lookup.target
Wants=network-online.target
[Service]
Type=forking
PIDFile=/run/nginx.pid
PrivateDevices=yes
PrivateTmp=true
SyslogLevel=err
ExecStart=/opt/nginx/bin/nginx
ExecReload=/opt/nginx/bin/nginx -s reload
Environment=LD_LIBRARY_PATH=/opt/nginx/lib
Restart=on-failure
KillMode=mixed
KillSignal=SIGQUIT
TimeoutStopSec=5
[Install]
WantedBy=multi-user.target