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)

31
votes
2answers
13k 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 ...
17
votes
1answer
4k 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?
12
votes
9answers
12k 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 ...
10
votes
2answers
2k 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: ...
6
votes
1answer
4k 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 ...
5
votes
3answers
2k 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 ...
5
votes
1answer
717 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

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 ...
5
votes
3answers
905 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 ...
4
votes
3answers
8k 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 ...
4
votes
3answers
2k 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 ...
4
votes
2answers
4k 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 ...
4
votes
2answers
3k 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. ...
4
votes
3answers
7k 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 ...
4
votes
1answer
251 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
1answer
1k 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' ...
3
votes
2answers
1k 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 ...
3
votes
1answer
1k 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
1answer
2k 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 ...
3
votes
2answers
884 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
521 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
288 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: ...
2
votes
1answer
328 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
2answers
871 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 ...
2
votes
1answer
699 views

Gearman workers still running after the job server and Supervisor have been shutdown

I have shutdown Gearman, using the (echo shutdown ; sleep 0.1) | netcat 127.0.0.1 4730 -w 1 command. I've also stopped Supervisor using /etc/init.d/supervisord stop. However, when I run a ps -aux, ...
2
votes
1answer
133 views

Does supervisord (“supervisorctl start”) wait for a command to finish, or fork it off asynchronously?

I'm running supervisorctl start in a shell script and am wondering if I can count on that operation being finished by the time the next line in the shell runs. Thanks!
2
votes
1answer
2k 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 ...
2
votes
0answers
229 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 ...
2
votes
2answers
152 views

Is upstart for starting a service, and supervisord to monitor it?

Is there some overlap in functionality between upstart and supervisord? I have a java process that I need to start at boot up, and also monitor this process to make sure it stays running (try and ...
2
votes
1answer
69 views

Supervisord unable to shutdown fcgi processes

I've managed to set up supervisord with fastcgi on a django project of mine, the problem is that when I make mi program stop, the server keeps running somehow, and my page keeps online. Here is my ...
2
votes
1answer
1k 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 ...
2
votes
1answer
113 views

Supervisord leaking child processes launched through shell script

I'm using supervisor 3 to daemonize a python process, which is launched through a bash script that sets up some configuration for python. The bash script runs python program in the foreground, FWIW. ...
2
votes
1answer
400 views

How to manage multiple supervisord's from one web interface?

I have 4 servers in my production setup, on these server I have supervisord to monitor and manage processes. Is there a way to manage multiple supervisord's from one supervisorctl web interface ? ...
2
votes
0answers
215 views

Linux equivalent of OS X “Launchd”, with respect to use by non-root users?

Is there a good way for non-root users to start "managed" processes? In this case, I am using managed" to describe a process that starts up when the user logs in, is monitored by some sort of ...
2
votes
0answers
113 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 ...
1
vote
1answer
1k 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 ...
1
vote
1answer
3k 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 ...
1
vote
1answer
1k views

Allow all users of a group to start and stop zope using supervisorctl

I'm just making some changes to the way we run Zope following a recent security advisory. In the advisory it says: “Make sure that the Zope/Plone service is running with with minimum ...
1
vote
1answer
983 views

Running Supervisord on a Mac

I'm trying to get it supervisord running on my Mac. The instructions call for using a $BINDIR path variable and I can't figure out what that should be. I tried using the directory I got from $ which ...
1
vote
1answer
279 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 ...
1
vote
2answers
2k 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] ...
1
vote
1answer
779 views

Gearman not working when running with Supervisord

I'm testing Gearman on a dedicated job-server (Ubuntu 12.04) for my PHP project (using pecl/gearman as the PHP impementation). Manually this works fine: starting up the client, adding jobs and ...
1
vote
1answer
806 views

What's the difference between cron and services like Supervisord?

Recently I came across supervisor while researching beanstalk stuff. Can someone explain to me why I might use a process management service like that instead of plain old cron jobs?
1
vote
1answer
85 views

supervisord and crashmail configuration

I want to be notified when a supervisord process changes state. I think I have configured it correctly but it is not working: when I change the status of a process (i.e. start/stop) I receive no ...
1
vote
1answer
529 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 ...
1
vote
1answer
338 views

Can Jenkins CI be monitored with supervisor?

I'm running Jenkins CI on an Ubuntu EC2 micro instance (it's the only thing running). Every so often, OOM killer strikes, which is a real pain (I've already configured jenkins memory usage to a bare ...
1
vote
1answer
649 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 ...
1
vote
1answer
2k 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 ...
1
vote
1answer
221 views

How to have supervisord follows the new unicorn process after USR2 rolling restart?

I have configured supervisord to track my unicorn server process. When I send USR2 process, this performs a rolling restart. After this operation the old unicorn master have restarted and then changed ...
1
vote
1answer
165 views

NodeJS Supervisord Hashlib

I have an problem with my NodeJS app. The problem is the include of the library Hashlib I've followed more than 10 times the instructions to install. Get a clone of the repo, do make and make install. ...