Supervisorctl not respecting my configuration
- In MacOS, use
brew
to install
brew install supervisor
- Then go to
/usr/local/etc/supervisord.ini
and comment these lines:
;[unix_http_server]
;file=/usr/local/var/run/supervisor.sock ; the path to the socket file
and uncomment these lines:
[inet_http_server] ; inet (TCP) server disabled by default
port=127.0.0.1:9001 ; ip_address:port specifier, *:port for all iface
- Finally restart the daemon:
brew services restart supervisor
That's all you need.
You should run supervisorctl
with -c
as well. From the documentation (my emphasis):
The Supervisor configuration file is conventionally named
supervisord.conf
. It is used by bothsupervisord
andsupervisorctl
. If either application is started without the-c
option (the option which is used to tell the application the configuration filename explicitly), the application will look for a file named supervisord.conf within the following locations, in the specified order. It will use the first file it finds.
$CWD/supervisord.conf
$CWD/etc/supervisord.conf
/etc/supervisord.conf