# Running nginx in the foreground

**URL:** <https://www.ruby-forum.com/t/running-nginx-in-the-foreground/136957>\
**Category:** NGINX\
**Created:** [May 7, 2008, 5:55pm UTC](https://www.ruby-forum.com/t/running-nginx-in-the-foreground/136957 "2008-05-07T17:55:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wannabe-coder](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/8e7dd6/32.png) [@wannabe-coder](https://www.ruby-forum.com/u/wannabe-coder)\
**Post date:** [May 7, 2008, 5:55pm UTC](https://www.ruby-forum.com/t/running-nginx-in-the-foreground/136957/1 "2008-05-07T17:55:51Z")

</div>

I have looked around of documentation on this but haven’t found any. Is  
it possible to keep the nginx master process from going into the  
background/damonizing when starting it? I would like to have it run in  
the foreground rather than becoming a daemon.

Thanks.  
-Joe

---

<div class="post-metadata">

**Author:** ![wannabe-coder](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/8e7dd6/32.png) [@wannabe-coder](https://www.ruby-forum.com/u/wannabe-coder)\
**Post date:** [May 7, 2008, 6:28pm UTC](https://www.ruby-forum.com/t/running-nginx-in-the-foreground/136957/2 "2008-05-07T18:28:41Z")

</div>

On Wednesday 07 May 2008, Joe W. wrote:

> I have looked around of documentation on this but haven’t found any. Is  
> it possible to keep the nginx master process from going into the  
> background/damonizing when starting it? I would like to have it run in  
> the foreground rather than becoming a daemon.

daemon off

---

<div class="post-metadata">

**Author:** ![wannabe-coder](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/8e7dd6/32.png) [@wannabe-coder](https://www.ruby-forum.com/u/wannabe-coder)\
**Post date:** [May 7, 2008, 6:48pm UTC](https://www.ruby-forum.com/t/running-nginx-in-the-foreground/136957/3 "2008-05-07T18:48:13Z")

</div>

Thanks, that worked.

-joe
