Add new service to existing supervisord process

user5047085 picture user5047085 · Nov 15, 2017 · Viewed 9.4k times · Source

Say I already have a supervisord process running on my machine. How can I add a new service/process for supervisord to monitor? For example, assume I have this simple .conf file:

run-suman-daemon.conf

[program:suman-daemon]
command=/Users/alexamil/WebstormProjects/suman/cli/suman-daemon.sh

I tried:

supervisord add run-suman-daemon.conf

but I get this error:

Error: positional arguments are not supported: ['add', 'sup.conf']
For help, use /usr/local/bin/supervisord -h

The supervisord daemon is running and I can connect to it with supervisorctl

Answer

Saji Xavier picture Saji Xavier · Aug 30, 2018

You can use following commands for reading the new configuration and starting the new processes

supervisorctl reread
supervisorctl update