Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

let supervisord take charge of nginx

$
0
0
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?

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>