Questions tagged [supervisord]
The supervisord tag has no usage guidance.
42
questions
1
vote
2answers
28 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:
...
-1
votes
0answers
11 views
Receive an email every time a process in supervisord falls [closed]
What is an easy way to receive an email every time a process in supervisord falls (without being killed by the supervisor)?
Certainly, I need emails per day rate limit.
0
votes
0answers
27 views
Unlinking stale socket supervisor.sock
I have installed supervisor on a shared Debian server. My configuration looks like this:
[unix_http_server] file=/tmp/supervisor.sock
But when I start supervisor like this: supervisord -c supervisord....
3
votes
2answers
5k 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 ...
0
votes
0answers
36 views
How to set restart delay in supervisor?
I am using supervisor to run some application in ubuntu. When the application stops, supervisor automatically restarts the application.
I want to set a time delay for restart. For example if for any ...
0
votes
0answers
12 views
How to have supervisord generate core files is specific programs crash?
By default the account running the supervisord services does not generate core files. I want specific [program] blocks to generate core files if the application cores, but not all of them. ...
18
votes
2answers
10k 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'...
0
votes
1answer
335 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 ...
0
votes
1answer
362 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:~/...
2
votes
1answer
4k 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 ...
2
votes
1answer
457 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 ...
0
votes
1answer
22 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 ...
2
votes
0answers
64 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 ...
1
vote
1answer
339 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
$...
9
votes
3answers
19k 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 ...
45
votes
6answers
55k 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 ...
2
votes
1answer
1k 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
[...
2
votes
0answers
40 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 ...
0
votes
2answers
1k 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 ...
0
votes
1answer
550 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 ...
0
votes
1answer
1k 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
...
1
vote
0answers
666 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 .....
5
votes
1answer
929 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 ...
1
vote
0answers
199 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-...
1
vote
0answers
693 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 ...
6
votes
1answer
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 ...
1
vote
1answer
1k 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 ...
2
votes
2answers
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/...
1
vote
1answer
5k 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 ...
1
vote
1answer
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 ...
9
votes
1answer
13k 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, ...
1
vote
0answers
60 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 ...
1
vote
0answers
646 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 ...
4
votes
2answers
3k 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 ...
3
votes
1answer
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 ...
1
vote
1answer
6k 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 ...
1
vote
1answer
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
#
...
2
votes
1answer
5k 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 ...
1
vote
0answers
871 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 ...
1
vote
1answer
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 ...
1
vote
1answer
3k 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 ...
13
votes
1answer
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.
...