17 lines
462 B
SYSTEMD
17 lines
462 B
SYSTEMD
|
|
[Unit]
|
||
|
|
Description=The OpenResty Application Platform
|
||
|
|
After=syslog.target network-online.target remote-fs.target nss-lookup.target
|
||
|
|
Wants=network-online.target
|
||
|
|
|
||
|
|
[Service]
|
||
|
|
Type=forking
|
||
|
|
PIDFile=/usr/local/openresty/nginx/logs/nginx.pid
|
||
|
|
ExecStartPre=/usr/local/openresty/nginx/sbin/nginx -t
|
||
|
|
ExecStart=/usr/local/openresty/nginx/sbin/nginx
|
||
|
|
ExecReload=/bin/kill -s HUP $MAINPID
|
||
|
|
ExecStop=/bin/kill -s QUIT $MAINPID
|
||
|
|
PrivateTmp=true
|
||
|
|
|
||
|
|
[Install]
|
||
|
|
WantedBy=multi-user.target
|