Supervisor is a client/server system that allows its users to control a number of processes on UNIX-like operating systems.

learn more… | top users | synonyms (1)

55
votes
2answers
25k views

Supervisor HTTP Server Port Issue

I have supervisor setup to manage a few processes. It works perfectly fine when I boot my server, however when I stop it and try to start it again it fails and give's me this error msg: * Starting ...
38
votes
7answers
66k views

How to automatically start supervisord on Linux (Ubuntu)

Supervisord does not come with an init script or does not indicate how to get it started automatically, ie. after a reboot. I've tried some user-contributed /etc/init.d scripts, but they all fail. ...
35
votes
11answers
39k views

Supervisor not loading new configuration files

I have a problem deploying Django app using Gunicorn and Supervisor. While I can make Gunicorn serving my app (by setting proper PYTHONPATH and running apropriate command, the one from supervisord ...
27
votes
1answer
7k views

Get notification from supervisord when a job exits

Is there any way supervisord can automatically restart a failed/exited/terminated job and send me a notification email with a dump of the last x lines of log file?
17
votes
2answers
5k views

Supervisord: how to append to $PATH

I can't seem to figure out how to append to the default path in a supervisord program config. I can reset the path: environment=PATH="/home/site/environments/master/bin" But when I try: ...
16
votes
1answer
4k views

How can I control a whole Supervisor group at once?

I have defined a non-homogenous Supervisor group. However I cannot control that group with the group name. If I try, I get the following error: $ supervisorctl start groupname groupname ERROR (no ...
10
votes
1answer
3k views

Limit which processes a user can restart with supervisor?

I have used supervisor to manage a Gunicorn process running a Django site, though this question could pertain to anything being managed by supervisor. Previously I was the only person managing and ...
10
votes
3answers
21k views

Supervisor always quit process with 'exit status 0; not expected'

I'm currently rebuilding my vps, and I'd like to use supervisor for managing my gunicorn/wsgi django processes. Thing is, supervisor keeps exiting the processes: 2010-07-23 14:54:40,575 INFO ...
9
votes
3answers
7k views

Controlling tomcat with supervisor

Is there a way to "gracefully" shutdown tomcat when controlling via supervisor? My understanding is Tomcat's shutdown.sh script talks to tomcat on the shutdown port to initiate a graceful shutdown. ...
7
votes
3answers
3k views

Supervisor VS cronjob

Actually I'm using supervisor to monitor a process and restart it when it stops for some reason. The problem is that in case of a supervisor crash the process stops get monitored. So I thought to ...
7
votes
3answers
3k views

Clear Directory with Salt State File

How do I clear a directory on a salt-minion using a state file? I want to delete all *.conf files in /etc/supervisord/conf.d/ before I set up other supervisor services. The following top.sls ...
7
votes
2answers
8k views

Can't reload supervisor with supervisorctl 'reload' command

I'm running supervisord on my CentOS 6 box like so, /usr/bin/supervisord -c /etc/supervisord.conf and when I launch supervisorctl all process status are fine, but if I try the reload command in ...
6
votes
1answer
826 views

gunicorn not fully reloading after an HUP signal

I'm trying to get a working supervisor/gunicorn/django setup on vagrant. I am using python-watchdog to try and restart gunicorn when code changes happen. I am using the following supervisor ...
6
votes
1answer
6k views

Error on .ini file trying to run supervisord

I am trying to use http://supervisord.org/. But came across and error. I have the supervisord.conf file in the same directory I am running this in. I tried to run supervisord for the first time on my ...
6
votes
1answer
5k views

Django + gunicorn + virtualenv + Supervisord issue

I have a strange issue with my virtualenv + gunicorn setup, only when gunicorn is launched via supervisord. I do realize that it may very well be an issue with my supervisord and I would appreciate ...
6
votes
3answers
13k views

How can I run supervisord without using root?

I seem to be having trouble figuring out why supervisord won't run as a non-root user. If I start it with the user set to jason (pid 1000), I get the following in the log file: 2010-05-24 08:53:32,...
5
votes
2answers
7k views

Supervisord - ini file error on CentOS

I installed Supervisor on CentOS 6.5 and currently experiencing some weird error that I can't seem to fix. I created a supervisord.conf file in /etc directory and call supervisor like this: $ ...
5
votes
2answers
2k views

How can I configure supervisord managed program to wait X secs before attemting to restart?

I've got a worker process which processes 1 RabbitMq message at a time. Right now, as soon as the worker exits, supervisord is restarting it (which will process the next message). I'd like to set an ...
5
votes
1answer
1k views

What are the advantages of using a process manager inside a Docker container?

As mentioned by Jerome, You also need to add a process manager; for instance Monit or Supervisor. This is because Docker will watch one single process. If you need multiple processes, you need to ...
5
votes
1answer
3k views

Optimize number of workers for several gunicorn instances

I'm configuring gunicorn (monitored by supervisord and behind an nginx frontend) and got a bit confused about the optimal number of processes to setup. In the documentation it is clearly explained ...
5
votes
3answers
3k views

Getting an error while installing supervisord on ubuntu 11.04. Any way to fix this?

# aptitude install supervisor The following NEW packages will be installed: python-medusa{a} python-meld3{a} supervisor 0 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need ...
5
votes
1answer
3k views

Server 'unix_http_server' running without any HTTP authentication checking

My supervisord told me that it is running without any HTTP authentication checking. supervisor> maintail 2015-03-03 16:57:03,832 CRIT Server 'unix_http_server' running without any HTTP ...
5
votes
3answers
2k views

Supervisord appears to be running, but monitored programs aren't launched

I've got supervisord 3.0a8 installed from the system package on ubuntu 10.04 (64bit). The supervisor service appears to be running, but it's not launching the configured programs. Interestingly enough,...
4
votes
1answer
6k views

Ubuntu - Supervisord and virtualenv

I'm attempting to run a series of Python apps from supervisor. It works fine on Mac OSX, but when I attempt to run the same app on Ubuntu, supervisor doesn't seem to be activating the virtualenv so my ...
4
votes
2answers
2k views

How do I automatically start supervisor on boot in FreeBSD?

Is there a pre-existing startup script for supervisord on FreeBSD? If not, is there a good guide for writing rc.d scripts for FreeBSD? I'm pretty new to the platform. Thanks. UPDATE: I now have the ...
4
votes
1answer
3k views

Nginx: How to use docker log collector when nginx is running under supervisord

The official nginx docker image (Dockerfile) uses the following trick to hand off its logs to stdout and stderr so that they are captured by the docker log collector and viewable using docker logs <...
4
votes
2answers
6k views

Supervisor process exits with 'exit status 1; not expected'

I'm trying to run a gunicorn_django process in supervisor but it always exits immediately, giving this error: INFO exited: my_app (exit status 1; not expected) INFO received SIGCLD indicating a ...
4
votes
1answer
2k views

Running django custom management commands with supervisord

I'd like to use supervisord to run some commands for my Django project but I keep getting the following error: supervisor.log: 2012-05-18 17:52:15,784 INFO spawnerr: can't find command 'source' ...
4
votes
1answer
571 views

Is supervisord shutting down gracefully?

I have process that needs arbitrary amount of time to shutdown, anywhere between 2 seconds and couple of minutes. It is important that this process exits gracefully (not killed). I use supervisord and ...
4
votes
2answers
4k views

supervisord: error: <class 'socket.error'>

I can't get supervisord to work; after starting the process with: # supervisord -n -c /etc/supervisord.conf 2013-05-29 11:34:11,861 CRIT Supervisor running as root (no user in config file) 2013-05-29 ...
4
votes
1answer
1k views

Dynamic number of supervisord controlled processes

I am using supervisord's [program:x] to keep my background queue runners up and running. The amount of numprocs is set to a static number, but now I am looking for a solution to dynamically adjust the ...
3
votes
1answer
2k views

Managing daemons with supervisor: no foreground mode available

I'm trying to manage a process with supervisord, but the process does not have an option to run in foreground: it always daemonizes. (That's Zabbix Server). Is there any way to manage daemons with ...
3
votes
1answer
6k views

How do I use supervisord's environment option in program sections?

The supervisord documentation states that No shell is executed by supervisord when it runs a subprocess, so environment variables such as USER, PATH, HOME, SHELL, LOGNAME, etc. are not changed ...
3
votes
2answers
881 views

Why use `bash -c` in supervisor instead of calling script directly?

I'm beginning to use supervisord to control services in my server. I'm not a pro user of linux but can get with it quite well and get it running. Just out of curiosity, I've noticed that most ...
3
votes
2answers
7k views

How can I have Supervisor running my programs as another user?

I'm having a lot of trouble making supervisor running my commands with expanded environment variables. My supervisor conf. ; supervisor config file [unix_http_server] file=/var/run//supervisor....
3
votes
1answer
2k views

Supervisor sentry-web exit status 1

I'm having problems getting Sentry (https://www.getsentry.com - not enough rep for a link) running as a service using supervisor. I can run Sentry in the command line and view it correctly in the ...
3
votes
2answers
2k views

Supervisor setup on AWS AMI Linux

I'm trying to get supervisor working to make sure my queue system is always running. Here are the steps I took, which I pieced together from various sources: (Ran as root or super user) Ran: # ...
3
votes
4answers
2k views

Reload signal for UWSGI when using Supervisord?

I have been using UWSGI behind Nginx and I've set supervisord to restart the Nginx and UWSGI instances in case of a server reboot. I am debugging my application and sometimes need to reload the ...
3
votes
1answer
2k views

supervisor.con on centos 6 [closed]

I installed supervisor using easy_install, however, the conf file seems to be missing, and I really wanted to have a base to start my configuration. Does anyone know where can I find this file or an ...
3
votes
1answer
124 views

Systemd causing multiple supervisor processes

I'm having a problem narrowing down where the issue is for my supervisor configuration that causes a program to be duplicated. I'm running a Python Tornado Web Server through an Nginx reverse proxy. ...
3
votes
0answers
442 views

How to make Supervisord read bash environment variables [closed]

I am using Supervisord to run my java application, which requires some environment variables for configuration. I am setting the environment variables in /etc/environment export MANAGER_URL="http://...
3
votes
1answer
739 views

Supervisor cannot correctly stop uwsgi

Supervisor can start uwsgi but after stopping uwsgi, when i try to start it again I get this error: 2014-03-16 08:38:34,249 DEBG 'app' stderr output: ...
3
votes
0answers
402 views

uwsgi through supervisor too many open files

I have uWSGI set up through supervisor on a ubuntu 12.04 box and lately I noticed that when trying to tail the logs (all the logs in that user account) I get message that too many files opened , uWSGI ...
3
votes
0answers
118 views

Supervisord not closing http ports

I'm trying to use Supervisord to keep my node.js web app alive. However when I run supervisorctl shutdown, it doesn't close the http port that node.js uses. Is there a way to configure Supervisord ...
2
votes
1answer
461 views

Ansible has difficulty restarting Supervisor

I'm trying to restart Supervisor through my Ansible Playbook but I seem to be stumbling into an issue with the supervisor module for Ansible. In my Supervisor config I have defined a program: [...
2
votes
1answer
505 views

Can't use supervisorctl outside of /etc/supervisor directory

I've been using supervisor for over a year now. It is installed from a Debian package. When I upgraded the package the other day, something break and I can't seem to figure out what. ~> sudo ...
2
votes
1answer
820 views

Supervisord inet_http_server behind nginx

We have supervisord [inet_http_server] running on 127.0.0.1:9001. When we're trying to place it behind nginx - supervisord logtail stops working. Supervisord settings: [inet_http_server] port = ...
2
votes
1answer
3k views

Supervisord and stdout/stderr

For a program configuration block in Supervisord, is it necessary to set stderr_logfile if redirect_stderr is true? stderror_logfile=/path/to/logfile/stderr.log stdout_logfile=/path/to/logfile/stdout....
2
votes
1answer
247 views

Nginx + GUnicorn + Flask + www-data user - file lockdown

I have some pretty basic questions about I am deploying a Flask application in Gunicorn (19.0-1) on Ubuntu (14.10) in combination with Nginx. Since this app sits along side to Web2Py, I followed a ...
2
votes
1answer
711 views

Handling expected supervisord exit codes

I am using supervisord inside a Docker container to manage my running processes and would like to also use it to trigger certain commands - run them once and expect them to exit with 0. Here's one ...