nginx-cn/sources/nginx-cn.service

22 lines
455 B
SYSTEMD
Raw Normal View History

2024-02-19 21:13:12 -05:00
[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/usr/bin/nginx
ExecReload=/opt/nginx/usr/bin/nginx -s reload
Restart=on-failure
KillMode=mixed
KillSignal=SIGQUIT
TimeoutStopSec=5
[Install]
WantedBy=multi-user.target