16 down vote favorite 2 Here's a preview of the status running supervisorctl status every 2 seconds

来源:互联网 发布:雪人翻译软件 编辑:程序博客网 时间:2024/06/05 02:16

http://stackoverflow.com/questions/23216819/nginx-with-supervisor-keep-changing-status-b-w-running-and-starting


Here's a preview of the status running supervisorctl status every 2 seconds:

[root@docker] ~ # supervisorctl statusnginx                            RUNNING    pid 2090, uptime 0:00:02[root@docker] ~ # supervisorctl statusnginx                            STARTING   [root@docker] redis-2.8.9 # supervisorctl statusnginx                            RUNNING    pid 2110, uptime 0:00:01

Is this a normal thing for nginx to respawn every few seconds ? Knowing that nginx is setup to be run in the background with this setup:

[program:nginx]command=/usr/sbin/nginxstdout_events_enabled=true

stderr_events_enabled=true

========================================

Its been a long time, but it might help someone else... set "daemon off" in your nginx config. Supervisord requires processes not to run as daemons.

0 0
原创粉丝点击