21 lines
538 B
SYSTEMD
21 lines
538 B
SYSTEMD
|
|
[Unit]
|
||
|
|
Description=nginx - high performance web server
|
||
|
|
Documentation=http://nginx.org/en/docs/
|
||
|
|
After=network.target
|
||
|
|
|
||
|
|
[Service]
|
||
|
|
Type=forking
|
||
|
|
PIDFile=/var/run/nginx.pid
|
||
|
|
ExecStartPost=/bin/sleep 0.1
|
||
|
|
ExecStartPre=/usr/local/nginx/sbin/nginx -t -c /usr/local/nginx/conf/nginx.conf
|
||
|
|
ExecStart=/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
|
||
|
|
ExecReload=/bin/kill -s HUP $MAINPID
|
||
|
|
ExecStop=/bin/kill -s QUIT $MAINPID
|
||
|
|
TimeoutStartSec=120
|
||
|
|
LimitNOFILE=1000000
|
||
|
|
LimitNPROC=1000000
|
||
|
|
LimitCORE=1000000
|
||
|
|
|
||
|
|
[Install]
|
||
|
|
WantedBy=multi-user.target
|