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 is a client/server system that allows its users to control a number of processes on UNIX-like operating systems.

This software is a simple process management tool for Unix flavors. It has no windows version and has an XMLRPC interface for control and management. Written entirely in python, it can used to monitor various unix processes and restart them automatically etc.

See documentation.

1603 questions
122
votes
2 answers

how to restart only certain processes using supervisorctl?

I'm running a few processes using supervisord, named process1, process2, ..., process8. If I want to restart process{1-4}, how can I do that with supervisorctl?
Thi Duong Nguyen
  • 1,745
  • 2
  • 12
  • 18
108
votes
7 answers

Supervisor socket error issue

$ supervisorctl reread error: , [Errno 111] Connection refused: file: /usr/lib64/python2.6/socket.py line: 567 I'm trying to configure supervisor on my production system, but am hitting this error. The supervisor log file is…
kelorek
  • 6,042
  • 6
  • 29
  • 32
96
votes
6 answers

Supervisor and Environment Variables

I really don't know how to get supervisor to work with environment variables. Below is a configuration…
Tampa
  • 75,446
  • 119
  • 278
  • 425
69
votes
2 answers

Celery: WorkerLostError: Worker exited prematurely: signal 9 (SIGKILL)

I use Celery with RabbitMQ in my Django app (on Elastic Beanstalk) to manage background tasks and I daemonized it using Supervisor. The problem now, is that one of the period task that I defined is failing (after a week in which it worked properly),…
daveoncode
  • 18,900
  • 15
  • 104
  • 159
66
votes
6 answers

supervisord stopping child processes

One of the problems, I face with supervisord is that when I have a command which in turn spawns another process, supervisord is not able to kill it. For example I have a java process which when runs normally is like $ zkServer.sh start-foreground …
FUD
  • 5,114
  • 7
  • 39
  • 61
57
votes
1 answer

Supervisord - Redirect process stdout to console

I am planning to run multiple processes using supervisor and please find my supervisord.conf file below: [supervisord] [program:bash] command=xyz stdout_logfile…
cucucool
  • 3,777
  • 8
  • 48
  • 63
57
votes
2 answers

How to set environment variables in Supervisor service

How do you export environment variables in the command executed by Supervisor? I first tried: command="export SITE=domain1; python manage.py command" but Supervisor reports "can't find command". So then I tried: command=/bin/bash -c "export…
Cerin
  • 60,957
  • 96
  • 316
  • 522
56
votes
3 answers

Use of Supervisor in docker

I am not asking about the use of supervisor with dockers but just want to have my understanding validated. I understand that docker runs a single process when it is run. Also, supervisor is used when we need to run multiple process within the…
user3275095
  • 1,605
  • 4
  • 24
  • 36
56
votes
5 answers

Supervisor on Debian Wheezy: another program is already listening on a port that one of our HTTP servers is configured to use

When I run service supervisor start I run into the following error: Starting supervisor: Error: Another program is already listening on a port that one of our HTTP servers is configured to use. Shut this program down first before starting…
balintant
  • 2,774
  • 1
  • 19
  • 33
55
votes
7 answers

Stopping supervisord: Shut down

I tired to start supervisor but getting error. Can anyone help? Thanks /etc/init.d/supervisord file. SUPERVISORD=/usr/local/bin/supervisord SUPERVISORCTL=/usr/local/bin/supervisorctl case $1 in start) echo -n "Starting supervisord: " …
Shah
  • 649
  • 1
  • 5
  • 11
51
votes
6 answers

supervisord for python 3?

Want to use supervisord to control the processes for my Python 3 project. It is specifically stated that "Supervisor is known to work with Python 2.4 or later but will not work under any version of Python 3". Any suggestions for supervisor…
user2777473
  • 3,736
  • 5
  • 26
  • 39
50
votes
12 answers

nginx and supervisor setup in Ubuntu

I'm using django-gunicorn-nginx setup by following this tutorial http://ijcdigital.com/blog/django-gunicorn-and-nginx-setup/ Upto nginx setup, it is working. Then I installed supervisor, configured it and then I reboot my server and checked, it…
rnk
  • 2,174
  • 4
  • 35
  • 57
48
votes
1 answer

Supervising virtualenv django app via supervisor

I'm trying to use supervisor in order to manage my django project running gunicorn inside a virtualenv. My conf file looks like this:…
Oleiade
  • 6,156
  • 4
  • 30
  • 42
48
votes
5 answers

Using supervisor as CRON

Is there any way to configure supervisor to run some command every X seconds(like CRON)? I see example with eventlistener and TICK_ event [eventlistener:memmon] command=memmon -a 200MB -m bob@example.com events=TICK_60 But it runs the command only…
barbushin
  • 5,165
  • 5
  • 37
  • 43
47
votes
2 answers

How to run gunicorn from a folder that is not the django project folder

I git cloned a project in my home folder, let's call it /home/telessaude. So the project root is located at /home/telessaude/telessaude_branch_master If I am inside the Django project home folder ( /home/telessaude/telessaude_branch_master ) and…
Vini.g.fer
  • 11,639
  • 16
  • 61
  • 90
1
2 3
99 100