# Running passenger + nginx

**URL:** <https://www.ruby-forum.com/t/running-passenger-nginx/189720>\
**Category:** Rails\
**Created:** [June 6, 2010, 6:11am UTC](https://www.ruby-forum.com/t/running-passenger-nginx/189720 "2010-06-06T06:11:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ct9a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ad7895/32.png) [@ct9a](https://www.ruby-forum.com/u/ct9a)\
**Post date:** [June 6, 2010, 6:11am UTC](https://www.ruby-forum.com/t/running-passenger-nginx/189720/1 "2010-06-06T06:11:53Z")

</div>

hi guys,

Assuming I made some changes to the source code.  
My production environment runs on passenger and nginx.

How do I restart passenger and nginx with minimal downtime?

Surely I can’t do a “w” on the terminal because a server will not  
always be in zero load.

Would love to hear some recommendations.

PS- I have read on unicorn ([Unicorn! - The GitHub Blog](http://github.com/blog/517-unicorn)) but  
would love to hear what we can do for passenger.

thanks

---

<div class="post-metadata">

**Author:** ![ct9a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ad7895/32.png) [@ct9a](https://www.ruby-forum.com/u/ct9a)\
**Post date:** [June 7, 2010, 7:52am UTC](https://www.ruby-forum.com/t/running-passenger-nginx/189720/2 "2010-06-07T07:52:55Z")

</div>

i think i found something.  
Just send a SIGHUP signal to the nginx process via kill.  
Seems to work well.  
Anyone got a better idea? 🙂

thanks

---

<div class="post-metadata">

**Author:** ![ct9a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ad7895/32.png) [@ct9a](https://www.ruby-forum.com/u/ct9a)\
**Post date:** [June 7, 2010, 7:55am UTC](https://www.ruby-forum.com/t/running-passenger-nginx/189720/3 "2010-06-07T07:55:16Z")

</div>

u can use it  
[http://gist.github.com/428270](http://gist.github.com/428270)  
for manage your nginx

Ivan N.  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![ct9a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ad7895/32.png) [@ct9a](https://www.ruby-forum.com/u/ct9a)\
**Post date:** [June 7, 2010, 10:12am UTC](https://www.ruby-forum.com/t/running-passenger-nginx/189720/4 "2010-06-07T10:12:06Z")

</div>

Gordon Y. wrote:

> i think i found something.  
> Just send a SIGHUP signal to the nginx process via kill.  
> Seems to work well.  
> Anyone got a better idea? 🙂
> 
> thanks

Yep, use: $ kill -HUP \<nginx\_pid\>
