Simple Linux Panel
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mdserver-web/plugins/openresty/init.d/openresty.service.tpl

14 lines
415 B

[Unit]
Description=OpenResty is a dynamic web platform based on NGINX and LuaJIT.
After=network.target
[Service]
Type=forking
ExecStart={$SERVER_PATH}/openresty/bin/openresty -c {$SERVER_PATH}/openresty/nginx/conf/nginx.conf
ExecStop={$SERVER_PATH}/openresty/bin/openresty -s stop
ExecReload={$SERVER_PATH}/openresty/bin/openresty -s reload
KillMode=process
Restart=on-failure
[Install]
WantedBy=multi-user.target