Questions tagged [supervisord]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
380 views

supervisorctl add & remove commands

Context In the supervisor documentation, I can read the following parameters, for the supervisorctl add and supervisorctl remove control commands: add <name> […] Activates any updates in config ...
Totor's user avatar
  • 19.7k
0 votes
0 answers
39 views

Is there any way for supervisord to reload only a single program configuration?

Supervisord looks nice at first glance, and I'm already used to it the way I get used to any tool after a while even if it is suboptimal. But I'm getting more and more annoyed with one situation: I ...
q.undertow's user avatar
1 vote
0 answers
169 views

Autorestart not working for supervisord programs

I am working with supervisord and I am facing issues in automatic restart of supervisord programs. supervisord.conf [supervisord] logfile=/dev/null pidfile=/tmp/supervisord.pid nodaemon=true [...
SRJ's user avatar
  • 111
0 votes
1 answer
87 views

How to set supervisord to start after the /etc/fstab mount

I am using supervisord to control and monitor my application. My application uses the mount configured in /etc/fstab and the application needs to start after entries in /etc/fstab are mounted during ...
pavan kumar's user avatar
0 votes
1 answer
186 views

Spawn workers to use up nearly all available CPU

Say I have a CLI app that I want to do some work (e.g. process some media files). When I run one instance of the app it takes say 20% CPU. The rest 80% is idle. I want some sort of process manager ...
Greendrake's user avatar
2 votes
1 answer
210 views

Why is Supervisord configured to exec/run in the tmp folder by default?

I've got a question regarding supervisord. After running echo_supervisord_conf, I noticed that the directory it runs in is configured as /tmp by default. Why is this the case? Is it because the /tmp ...
T_R_O_N's user avatar
  • 23
0 votes
1 answer
3k views

Why doesn't supervisor log the output of a child process?

When I run the script server.sh (runs a quake dedicated server) in the terminal it will create initialization output like ------- Game Initialization ------- gamename: baseqz gamedate: May 25 2016 ...
mankind86's user avatar
1 vote
2 answers
222 views

Restart a process if a message is detected on stdout

Is there a way of monitoring a process (like for example with supervisord), and then restarting the process if the stdout outputs a specific line of text? In my case the line to check for would be: ...
Armand Jordaan's user avatar
0 votes
2 answers
2k views

How to allow `www-data` to call `supervisorctl status`?

I have a PHP script that calls exec('supervisorctl status 2>&1', $output);, which runs as www-data user (through Apache). However this user does not have access to this command. I would like to ...
Flame's user avatar
  • 111
2 votes
1 answer
2k views

Changing user for supervisor - error CRIT Set uid to user

I changed user for supervisor from root to non-root called dev. All is good, supervisor is running as dev: me@server$ ps aux | grep supervisor dev 25230 0.2 1.0 60404 21392 ? Ss 21:42 ...
Brzozova's user avatar
  • 144
0 votes
1 answer
60 views

When restarting Ubuntu quit supervisor sooner than other services [duplicate]

I have supervisor that is handling a queue process that is dependent on Redis being available. When I restart the server (Ubuntu 18.04) the Redis server is quitting before Supervisor and the queue ...
Ivan Dokov's user avatar
2 votes
0 answers
248 views

Ubuntu Supervisor command expansion in bash

I need to run a command via supervisor (bash on Ubuntu 18.04) that launches a parallel process with a number of cores equals to a fraction of the machine cores. From the command line I can ...
Rojj's user avatar
  • 213
1 vote
1 answer
811 views

Debian 9: cannot start supervisor after a fresh install

Distro $ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 9.11 (stretch) Release: 9.11 Codename: stretch How I installed supervisor $...
realtebo's user avatar
  • 849
2 votes
1 answer
2k views

Supervisord does not exit after one service crashed in a Docker container

I have the following supervisord configuration: [supervisord] nodaemon=true logfile=NONE [program:service1] command=/usr/sbin/service1 user=someone autostart=true autorestart=true startsecs=30 [...
manifestor's user avatar
  • 2,443
2 votes
0 answers
93 views

Permission errors when running program using supervisor, but not in the shell

I have a program which is supposed to always be running. This program listens for commands in a message broker, does a file system operation upon request, and publishes the result through the same ...
Hannes Petri's user avatar
0 votes
1 answer
759 views

Autostart supervisord 4.0.0, Ubuntu server 16.04

I installed last version from https://github.com/Supervisor/supervisor By command: python3 setup.py install Now I'm able to run supervisord manually, just by typing sudo supervisord So, after ...
delkov's user avatar
  • 101
0 votes
2 answers
3k views

Supervisord removing a process after successfully running

I have the following configuration for a process to run continuously. Apparently, it works very fine but after few hours or sometimes few minutes, the process gets terminated. Any kind of help is ...
Jason Kruger's user avatar
1 vote
0 answers
972 views

Restart a supervisor program without root

I have a two-level supervisord system on Debian Linux: In /etc/supervisor/conf.d/opus-release.conf [program:opus] user=opus command=bash -c 'cd /home/opus/projects/XXX && supervisord -n -c .....
porton's user avatar
  • 2,166
0 votes
1 answer
521 views

supervisord unable to start jenkins service

i have created a Dockerimage which is using supervisord to start multiple services, 2 of them are working but the 3rd jenkins service start and then gets killed on its own. supervisord ubuntu@kops:~/...
Mohammed Ali's user avatar
0 votes
1 answer
2k views

Supervisor's child stdout.log: real time read

Supervisor activates some child processes. I configured each of them like this: [program:XXXXX] command=/XXXXX/XXXXX directory=/XXXXXX autostart=true autorestart=true startsecs=3 startretries=10000 ...
Alex Poca's user avatar
  • 491
1 vote
0 answers
215 views

How to run ps-watcher as non-root

The command is ps-watcher $HOME/ps-watcher.cfg Is I run it as normal user, I got this error: Unable to open file handle FH for file '/var/run/ps-watcher.pid': Permission denied The content of ps-...
godblessfq's user avatar
1 vote
0 answers
970 views

supervisord as watchdog for various services

I tried to configure supervisord as watchdog for tomcat, redis and some other services. The goal is to automatic restart if the services are crashed or stopped. Here is my configuration for redis and ...
Veerendra K's user avatar
2 votes
1 answer
2k views

supervisord - multiple environment variables

I have a supervisord configuration file where I need to set multiple environment variables. E.g. environment=A="1",B="2",C="3", etc. Is there a way of writing this in the file so that it spans ...
ManoDestra's user avatar
1 vote
1 answer
6k views

How to set environment variable in supervisord using output from a file

What is the good way to set environment variable in supervisord using output from a file? I need like: [program:prog1] command=prog1 -param1 -param2 environment=PASSWORD=`cat .password` I can use an ...
Dimaf's user avatar
  • 233
10 votes
1 answer
18k views

Can Systemctl restart processes that have died, or is that where Supervisor comes in?

From my research, it would appear that Supervisor and Systemctl are not interchangeable, however they have overlapping functions; notably, they both can be used to start other processes. However, ...
Matthew Moisen's user avatar
21 votes
2 answers
13k views

Have SystemD spawn N processes?

At my organization, we have a number of queue consuming worker processes. We're currently using SupervisorD to manage them, but would like to use SystemD if possible for certain advantages therein. I'...
Naftuli Kay's user avatar
  • 39.1k
3 votes
2 answers
6k views

How to make sure that a child process of a supervisor job dies when I kill supervisor

My app is a jar file that requires some environment variables. I have all the environment variables in one file, which looks like this: export VAR=value export VAR2=value2 #....etc My supervisor ...
snetch's user avatar
  • 187
47 votes
6 answers
68k views

ubuntu server 16.04: cannot get supervisor to start automatically

I installed supervisor on ubuntu server 16.04. $ sudo apt-get install supervisor $ sudo update-rc.d supervisor defaults After rebooting, supervisor didn't get started automatically. Checked the ...
qinking126's user avatar
1 vote
0 answers
73 views

how to make supervisord immediately relive once it was killed

I finished installation of supervisord on my centos6, it works also well. But I found I could use command "kill" to kill supervisord itself, and it was not able to relive. I suppose when supervisord ...
Jack's user avatar
  • 415
1 vote
0 answers
681 views

Start my webpy server using supervisor

I am trying to start my python web.py server at boot, but I am having difficulties getting it running by itself. I have a config-file like the following. It's basically the sample file with an added ...
Georg's user avatar
  • 111
2 votes
1 answer
2k views

Command output redirect with supervisord

docker -H :4000 events | ./docker_events.py docker -H :4000 events will gives the events continuously until we press Crtl+C. So, I pipe the output to my custom script docker_events.py which parses ...
Veerendra K's user avatar
4 votes
2 answers
5k views

Supervisord at 99% cpu usage

I've installed supervisord using: sudo apt-get install supervisor on my Ubuntu 14.04 server as per the instructions in the Laravel documentation. I've noticed that the supervisorctl process on my ...
Amo's user avatar
  • 115
1 vote
1 answer
7k views

centos 7.1 - supervisord terminates if run with systemctl

So I have a weird problem and I've been banging my head for the entire day. I have a centos 7.1 with supervisord 3.2.0 installed. If I run the supervisor with systemctl, it runs and then it shuts down ...
Sam R.'s user avatar
  • 131
2 votes
2 answers
2k views

Launch Spark in Foreground via Supervisor

We have a spark cluster that launches via supervisor. Excerpts: /etc/supervisor/conf.d/spark_master.conf: command=./sbin/start-master.sh directory=/opt/spark-1.4.1 /etc/supervisor/conf.d/...
dannyman's user avatar
  • 349
2 votes
1 answer
7k views

Supervisor: no such file or directory even though it is there [duplicate]

I am trying to start supervisor service supervisor start, as root, but it gives me env: /etc/init.d/supervisor: No such file or directory Yet, I can clearly see that file exists: [root@master ...
kutschkem's user avatar
  • 173
1 vote
0 answers
974 views

Stop all processes by a user: children of supervisord are still running

I'm trying to delete a user but it keeps saying that user is currently used by process ID x I tried everything here and here, nothing works, how do I kill all the process by a certain user in order ...
Lynob's user avatar
  • 4,094
1 vote
1 answer
3k views

Log rotation in supervisord

I set up several programs in supervisord. They send their output to stdout, that is forwarded to file using supervisord. There is a logrotation function in supervisord, but the problem is that it ...
dbf's user avatar
  • 81
5 votes
1 answer
1k views

Supervisord scheduling [closed]

Is it possible to set jobs to run every n days in supervisord, like what cron is doing? I'm asking because I have different kinds of jobs, continuous / real-time and daily ones. All my jobs are ...
smace's user avatar
  • 151
3 votes
1 answer
2k views

Debian wheezy: supervisor (install from repostiory) not start automatically on boot

I've been fighting with this problem for more than 1 hour and I have no idea what's going on. Installation: $ sudo apt-get install supervisor Version: 3.0a8-1.1+deb7u1 $ sudo update-rc.d supervisor ...
Jesse's user avatar
  • 161
1 vote
1 answer
4k views

Why doesn't my supervisor daemon start on reboot?

I have added a crontab entry via crontab -e for the current user: @reboot supervisord -c /etc/supervisord.conf Yet after the reboot, supervisord demon is not running. I need to run the command again ...
k0pernikus's user avatar
  • 15.2k
1 vote
1 answer
1k views

Supervisord runs ssserver but reports an error on CentOS?

I have the following Supervisord setup, /etc/supervisord.conf: ... [program:shadowsocks] command=ssserver -c ~/config.json autorestart=true user=nobody ... /etc/rc.d/init.d/supervisord: #!/bin/sh # ...
arachide's user avatar
  • 127
3 votes
1 answer
5k views

Run supervisord without root access

Hi I'm really new to writing scripts and I searched a lot but all that I've found is scripts with full access. I don't have access to the /etc. I'm working in a host in the cloud but I have limited ...
user avatar
9 votes
3 answers
21k views

Supervisord does not work

Kinda shocked about supervisor. I get this error unix:///var/run/supervisor.sock no such file What is so shocking is the file is there! I am running on ubuntu on ec2. I tired to chmod to 0777 as ...
Tampa's user avatar
  • 190
13 votes
1 answer
5k views

is upstart and supervisord used for the same thing?

I have a some jvm based processes that I need to make sure start whenever my server is rebooted, and also if it stops because of an unexpected error etc. I'm running Ubuntu 12.04 in case in matters. ...
Blankman's user avatar
  • 263
6 votes
1 answer
2k views

What are the differences between runit and supervisord?

I'm looking into changing our Django deployments and was reading the deploy page for gunicorn and it talks about both supervisord which I was aware of and planning on using and runit that I don't ...
Kit Sunde's user avatar
  • 4,434