How to add nginx to /etc/init.d list

I compiled nginx from source and I am launching it with
/usr/local/nginx/bin/nginx.

How is the source compilation added to the /etc/init.d list?


Frank C.

=======================

On 5 Nov 2010 22h48 WET, [email protected] wrote:

[1 <multipart/alternative (7bit)>]
[1.1 <text/plain; ISO-8859-1 (7bit)>]
I compiled nginx from source and I am launching it with
/usr/local/nginx/bin/nginx.

How is the source compilation added to the /etc/init.d list?

You need and init script. Grab the one from the Debian package, for
example. I suggest you grab the full debian package source and also
check the postinst script for an implementation of a script that does
version upgrade the proper way, i.e., without downtime. Otherwise
you’ll have to send the correct signals to the running process in the
correct order.

Cf.
http://wiki.nginx.org/NginxCommandLine#Controlling_Nginx_Via_the_Signals

— appa

On Fri, 2010-11-05 at 22:48 +0000, Frank C. wrote:

I compiled nginx from source and I am launching it
with /usr/local/nginx/bin/nginx.

How is the source compilation added to the /etc/init.d list?

You should specify what *nix you are using (Linux, BSD, SCO, OSX), along
with whatever flavor/distro you may be using. There’s some info on the
wiki for a few variations, so you might start there:

http://wiki.nginx.org/Configuration#Init_Scripts


Cliff W. [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs