On Thursday, December 3, 2015 at 9:04:04 AM UTC-5, Aapo Talvensaari wrote:
On Thursday, 3 December 2015 15:24:31 UTC+2,
tew...@dark-net.net wrote:
Hello.
Does Open Resty ship with an init script to make the openresty nginx process start automatically at boot when installed from source? I have seen reports that it does not, and wanted to check/confirm this before making an init script for someone to use with OpenResty.
No it doesn't. There isn't official binary packages or source package that supply these (but there are many unofficial ones). But for nginx there are packages for many operating systems, even
nginx.org supplies binary packages to some platforms. OpenResty init script is basically just nginx init script. You can copy one from existing nginx packages for your platform and rename it to openresty, and possibly make some small changes to paths.
In future there is a plan to have pre-built packages for different platforms but not yet.
Makes sense, thanks for your response. The people who've been asking me for whether such init scripts exist are getting a copy of the nginx init script from the Ubuntu package, which appears to work when things get tweaked accordingly.
Thanks!