Alan Evangelista
2016-10-26 21:08:29 UTC
I am using supervisor 3.2.0 and I have the following supervisord.conf file:
[unix_http_server]
file=/tmp/supervisor.sock ; (the path to the socket file)
[supervisord]
logfile=/tmp/supervisor.log ; (main log file;default $CWD/supervisord.log)
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB)
logfile_backups=2 ; (num of main logfile rotation backups;default 10)
loglevel=info ; (log level;default info; others: debug,warn,trace)
pidfile=/tmp/supervisor.pid ; (supervisord pidfile;default supervisord.pid)
nodaemon=false ; (start in foreground if true;default false)
minfds=1024 ; (min. avail startup file descriptors;default 1024)
minprocs=200 ; (min. avail process descriptors;default 200)
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
([program] sections ....]
I start supervisor server using
$ supervisord -c supervisord.conf
and then try to restart a program using
$ supervisorctl -c supervisord.conf restart <program_name>
http://localhost:9001 refused connection
From http://supervisord.org/configuration.html, I see that:
- Unix domain socket on which supervisor will listen is defined in a [unix_http_server] section
- TCP port on which supervisor will listen is defined in a [inet_http_server] section. If the
section is not defined, no Internet (TCP/IP) HTTP server is started.
- serverurl attribute of [supervisorctl] section defines the URL that supervisorctl uses to connect
to supervisor server
From this, it seems that my config file is correct and I do not understand why supervisorctl is
looking for a http URL
in the restart command. Any ideas?
Regards,
Alan
[unix_http_server]
file=/tmp/supervisor.sock ; (the path to the socket file)
[supervisord]
logfile=/tmp/supervisor.log ; (main log file;default $CWD/supervisord.log)
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB)
logfile_backups=2 ; (num of main logfile rotation backups;default 10)
loglevel=info ; (log level;default info; others: debug,warn,trace)
pidfile=/tmp/supervisor.pid ; (supervisord pidfile;default supervisord.pid)
nodaemon=false ; (start in foreground if true;default false)
minfds=1024 ; (min. avail startup file descriptors;default 1024)
minprocs=200 ; (min. avail process descriptors;default 200)
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
([program] sections ....]
I start supervisor server using
$ supervisord -c supervisord.conf
and then try to restart a program using
$ supervisorctl -c supervisord.conf restart <program_name>
http://localhost:9001 refused connection
From http://supervisord.org/configuration.html, I see that:
- Unix domain socket on which supervisor will listen is defined in a [unix_http_server] section
- TCP port on which supervisor will listen is defined in a [inet_http_server] section. If the
section is not defined, no Internet (TCP/IP) HTTP server is started.
- serverurl attribute of [supervisorctl] section defines the URL that supervisorctl uses to connect
to supervisor server
From this, it seems that my config file is correct and I do not understand why supervisorctl is
looking for a http URL
in the restart command. Any ideas?
Regards,
Alan