开发者

I lost nginx.pid,it disappeared

开发者 https://www.devze.com 2023-01-19 06:13 出处:网络
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.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消