Welcome! Log In Create A New Profile

Advanced

let supervisord take charge of nginx

Posted by TheBigAmbulance 
let supervisord take charge of nginx
June 07, 2016 03:37PM
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?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 236
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready