I lost nginx.pid,it disappeared
Here is part of my nginx.conf
:
pid /www/nginx0836/nginx.pid;
While I restart nginx, in several seconds I run ls /www/nginx0836
and it lists nginx.pid
.
But after several seconds, running ls /www/nginx0836
again, nginx.pid
is not listed.
Why?
By the way, nginx server works well and when I run
ps -ef | grep "nginx: master process" | grep -v "grep" | awk -F ' ' '{pr开发者_JAVA技巧int $2}'
then I can see nginx pid.
try monitoring folder with incrond and log any changes with $# $@ on that directory. may be you will see something like puppet or an rsync deleting the pid file.
/www/nginx0836 IN_DELETE echo "$# $@"
it will log any delete event on directory
simpler than audit...
sorry the poor english
Try default configuration for nginx, you will find similar problem here
精彩评论