[Supervisor-users] Supervisord and Nginx configuration

Mark Jarecki mjarecki at bigpond.net.au
Sun Dec 13 21:09:57 EST 2009


Hi there,

just another question. How do I configure the supervisord.conf file to enable the control of Nginx?

Killing Nginx is typically:
sudo kill -INT `cat /var/run/nginx.pid`

The Nginx section in my supervisord.conf is:

[program:nginx]
command=sudo /usr/local/sbin/nginx
stopsignal=INT
user=someuser

This does nothing but generate errors when I run:

sudo supervisorctl stop nginx

The error:
FAILED: unknown problem killing nginx (163):Traceback (most recent call last):
  File "/usr/local/lib/python2.6/site-packages/supervisor-3.0a7-py2.6.egg/supervisor/process.py", line 383, in kill
    options.kill(self.pid, sig)
  File "/usr/local/lib/python2.6/site-packages/supervisor-3.0a7-py2.6.egg/supervisor/options.py", line 1064, in kill
    os.kill(pid, signal)
OSError: [Errno 1] Operation not permitted

Then when i run sudo supervisorctl status, I get:

nginx                            UNKNOWN  

If anyone could point me in the right direction, that would be greatly appreciated.

Cheers,

Mark


More information about the Supervisor-users mailing list