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

**URL:** <https://www.ruby-forum.com/t/how-to-add-nginx-to-etc-init-d-list/198714>\
**Category:** NGINX\
**Created:** [November 5, 2010, 11:49pm UTC](https://www.ruby-forum.com/t/how-to-add-nginx-to-etc-init-d-list/198714 "2010-11-05T23:49:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Post date:** [November 5, 2010, 11:49pm UTC](https://www.ruby-forum.com/t/how-to-add-nginx-to-etc-init-d-list/198714/1 "2010-11-05T23:49:25Z")

</div>

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.

=======================  
[http://devblog.brahmancreations.com](http://devblog.brahmancreations.com)

---

<div class="post-metadata">

**Author:** ![vfcforums](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/85e7bf/32.png) [@vfcforums](https://www.ruby-forum.com/u/vfcforums)\
**Post date:** [November 6, 2010, 12:09am UTC](https://www.ruby-forum.com/t/how-to-add-nginx-to-etc-init-d-list/198714/2 "2010-11-06T00:09:28Z")

</div>

On 5 Nov 2010 22h48 WET, [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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.

> **[GitHub - nginxinc/nginx-wiki: ARCHIVED -- Source for the now archived NGINX Wiki...](https://github.com/nginxinc/nginx-wiki)**
>
> ARCHIVED -- Source for the now archived NGINX Wiki section of https://www.nginx.com

— appa

---

<div class="post-metadata">

**Author:** ![vfcforums](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/85e7bf/32.png) [@vfcforums](https://www.ruby-forum.com/u/vfcforums)\
**Post date:** [November 6, 2010, 12:25am UTC](https://www.ruby-forum.com/t/how-to-add-nginx-to-etc-init-d-list/198714/3 "2010-11-06T00:25:07Z")

</div>

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:

> **[GitHub - nginxinc/nginx-wiki: ARCHIVED -- Source for the now archived NGINX Wiki...](https://github.com/nginxinc/nginx-wiki)**
>
> ARCHIVED -- Source for the now archived NGINX Wiki section of https://www.nginx.com

–  
Cliff W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
