Hello!
On Sat, Aug 24, 2013 at 4:43 AM, gopalakrishnan.subramani wrote:
> I used to start nginx using
>
> sudo service nginx start or restart or stop option
> also used to
>
> sudo /etc/init.d/nginx start/stop/restart
>
> After installing openresty I am missing this configuration. Please help me
> to setup right start script for me.
Basically, the openresty installation paths are different from the
nginx paths configured by your Linux distribution.
For the first "service command" approach, you need to change your
systemd configuration file. For example, on my Fedora system, the
configuration file you need to update is
/lib/systemd/system/nginx.service.
For the second init.d approach, you need to update your
/etc/init.d/nginx file to reflect the paths used by openresty.
But a cleaner approach is to create your own "openresty" service to
prevent polluting your system's default configurations files.
BTW, please join this list before posting otherwise your posts always
require manual moderation. To subscribe to the list, just send an
empty email to the address
openresty-e...@googlegroups.com
Best regards,
-agentzh