Questions tagged [supervisord]

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

Supervisor shares some of the same goals of programs like launchd, daemontools, and runit. Unlike some of these programs, it is not meant to be run as a substitute for init as “process id 1”. Instead it is meant to be used to control processes related to a project or a customer, and is meant to start like any other program at boot time.

http://supervisord.org

https://pypi.python.org/pypi/supervisor

241 questions
98
votes
12 answers

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 config) I can't make supervisor to run it. It just…
grucha
  • 1,093
  • 1
  • 9
  • 9
67
votes
3 answers

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 Supervisor daemon manager... Error: Another…
Catalina
38
votes
7 answers

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. What would be the preferred solution ?
sebastien
38
votes
2 answers

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?
Sebastian Hoitz
  • 3,169
  • 3
  • 24
  • 19
29
votes
1 answer

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 such process) I can, however, control a single…
lofidevops
  • 1,325
  • 4
  • 13
  • 23
26
votes
8 answers

Supervisor sock file missing

I installed Supervisor (v3.1.2) to manage ElastAlert but when I run supervisorctl it sometimes throws this error: unix:///var/run/supervisor.sock no such file and other times it throws this error: unix:///tmp/supervisor.sock no such file I'll note…
Canadian
  • 365
  • 1
  • 3
  • 10
25
votes
1 answer

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: $ supervisord -c /etc/supervisord.conf Which looks pretty…
nogias
  • 347
  • 1
  • 3
  • 6
25
votes
2 answers

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: environment=PATH="/home/site/environments/master/bin:$PATH" I…
Prody
  • 613
  • 3
  • 7
  • 16
18
votes
3 answers

Directory setting in Supervisor

I was configuring supervisor daemon to be able to start/stop Celery. It did not work. After debuging back and forth I realized that the problem was that it did not change the working directory to the one mentioned in the directory option in…
Glueon
  • 3,664
  • 2
  • 24
  • 32
17
votes
3 answers

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 supervisord started with pid 31391 2010-07-23 14:54:41,582…
Bjorn
  • 453
  • 1
  • 5
  • 12
16
votes
5 answers

How to exit all supervisor processes if one exited with 0 result

I run docker container with supervisor like this: Dockerfile CMD ["/run.sh"] run.sh #!/usr/bin/env bash exec supervisord…
Vitaly Velikodny
  • 361
  • 1
  • 2
  • 10
15
votes
1 answer

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 using our server, and supervisor just ran as root…
davidscolgan
  • 395
  • 2
  • 12
14
votes
3 answers

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. Supervisor doesn't seem to have a way to specify a…
Mark
  • 243
  • 1
  • 2
  • 6
13
votes
2 answers

How do I chose between upstart, runit, supervisor, daemontools, ... for restarting a process if it dies? (process supervision / monitoring)

I have a Nginx web proxy, gunicorn web server, and a python/flask web app. The Gunicorn process apparently died, and I want to ameliorate that in the future by looking into a utility that can monitor and restart the gunicorn process in the event it…
Matthew Moisen
  • 341
  • 2
  • 5
  • 12
13
votes
3 answers

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 configuration has no effect: /etc/supervisor/conf.d/*: …
Petrus Theron
  • 1,601
  • 5
  • 17
  • 24
1
2 3
16 17