checking config outputs a pid file

Jeffrey 'jf' Lim jfs.world at gmail.com
Tue May 27 08:52:14 MSD 2008


On Tue, May 27, 2008 at 11:53 AM, Cherife Li <cherife at dotimes.com> wrote:

> Hi all,
>
> Has anyone noticed that `nginx -t' outputs an empty pid file while the
> nginx process isn't running.
>

no, but good catch!!!


>
> I can only add
>  if [ ! -s $PID ]; then
>    rm -f $PID
>  fi
> to the check-config section of my rc file at the moment.
>

you dont need to, as far as i can tell. nginx just proceeds to overwrite
that file with the proper value when it starts up...

-jf

--
In the meantime, here is your PSA:
"It's so hard to write a graphics driver that open-sourcing it would not
help."
-- Andrew Fear, Software Product Manager, NVIDIA Corporation
http://kerneltrap.org/node/7228
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20080527/0a627985/attachment.html>


More information about the nginx mailing list