Update openresty.service.tpl

pull/109/head
midoks 3 years ago
parent 05e1f870bb
commit 8a89a9594f
  1. 8
      plugins/openresty/init.d/openresty.service.tpl

@ -3,10 +3,12 @@ Description=OpenResty is a dynamic web platform based on NGINX and LuaJIT.
After=network.target After=network.target
[Service] [Service]
{$SERVER_PATH}
Type=forking Type=forking
ExecStart=/usr/local/open/sbin/nginx -c /usr/local/nginx/conf/nginx.conf ExecStart={$SERVER_PATH}/openresty/bin/openresty -c {$SERVER_PATH}/openresty/nginx/conf/nginx.conf
ExecStop=/usr/local/nginx/sbin/nginx -s stop ExecStop={$SERVER_PATH}/openresty/bin/openresty -s stop
ExecReload=/usr/local/nginx/sbin/nginx -s reload ExecReload={$SERVER_PATH}/openresty/bin/openresty -s reload
KillMode=process KillMode=process
Restart=on-failure Restart=on-failure

Loading…
Cancel
Save