I need supervisord to take charge of the nginx process. The reason being is that I want supervisor to make sure the application is running.
I have the following config file:
[program:nginx]
command=/usr/sbin/nginx -g "daemon off;"
stdout_events_enabled=true
stderr_events_enabled=true
autostart=true
autorestart=true
startretries=3
numprocs=1
pdfile=/var/run/nginx.pid
stderr_logfile=/var/log/supervisor/nginx/nginx.err.log
stdout_logfile=/var/log/supervisor/nginx/nginx.out.log
user=root
startsecs=0
exitstatus=0
It's mostly working with the exception that the worker processes keep running after I stop it via supervisord.
Has anyone successfully gotten supervisord to run this process?
I have the following config file:
[program:nginx]
command=/usr/sbin/nginx -g "daemon off;"
stdout_events_enabled=true
stderr_events_enabled=true
autostart=true
autorestart=true
startretries=3
numprocs=1
pdfile=/var/run/nginx.pid
stderr_logfile=/var/log/supervisor/nginx/nginx.err.log
stdout_logfile=/var/log/supervisor/nginx/nginx.out.log
user=root
startsecs=0
exitstatus=0
It's mostly working with the exception that the worker processes keep running after I stop it via supervisord.
Has anyone successfully gotten supervisord to run this process?