# Where is the pid file

**URL:** <https://www.ruby-forum.com/t/where-is-the-pid-file/227845>\
**Category:** NGINX\
**Created:** [March 30, 2013, 8:40pm UTC](https://www.ruby-forum.com/t/where-is-the-pid-file/227845 "2013-03-30T20:40:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JCR](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/258eb7/32.png) [@JCR](https://www.ruby-forum.com/u/JCR)\
**Post date:** [March 30, 2013, 8:40pm UTC](https://www.ruby-forum.com/t/where-is-the-pid-file/227845/1 "2013-03-30T20:40:06Z")

</div>

Hi  
on Linux Centos 5 wiht nginx 1.2.7, I am struggling to find the pid file

in my nginx.conf file I have  
pid /usr/local/nginx/logs/nginx.pid;

but I dont see any nginx.pid in there. I tried to set that path at  
compile  
time but to no avail.

Is there a command to know where that file is?  
Wy doesn’t the above entry work?

Thanks!

Posted at Nginx Forum:

> **[where is the pid file](https://forum.nginx.org/read.php?2,237983,237983#msg-237983)**
>
> Hi on Linux Centos 5 wiht nginx 1.2.7, I am struggling to find the pid file in my nginx.conf file I have pid /usr/local/nginx/logs/nginx.pid; but I dont see any nginx.pid in there. I tried to set that path at compile time but to no avail.

---

<div class="post-metadata">

**Author:** ![JCR](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/258eb7/32.png) [@JCR](https://www.ruby-forum.com/u/JCR)\
**Post date:** [March 31, 2013, 3:14am UTC](https://www.ruby-forum.com/t/where-is-the-pid-file/227845/2 "2013-03-31T03:14:02Z")

</div>

On 03/30/2013 08:39 PM, JCR wrote:

> Wy doesn’t the above entry work?  
> Have you checked the nginx init file in /etc/rc.d/init.d/ ?

Regards,  
Patrick
