Discussion:
[Supervisor-users] Configuration Directory
rod
2014-07-14 21:36:54 UTC
Permalink
Hi, I can't find reference to this in any of the docs but just reaching out
incase it is possible...

Am I able to use a configuration directory with supervisor to maintain a
separate config file for each program? So something like this...

/etc/supervisord.conf
/etc/supervisor.d/program1.conf
/etc/supervisor.d/program2.conf

Or is it only supported to have one configuration file?

Thanks.
Rod.
Matt Black
2014-07-14 21:54:01 UTC
Permalink
The directory you’re looking for is:

/etc/supervisor/conf.d

You can put as many .conf files in there as you like :)
​
Post by rod
Hi, I can't find reference to this in any of the docs but just reaching
out incase it is possible...
Am I able to use a configuration directory with supervisor to maintain a
separate config file for each program? So something like this...
/etc/supervisord.conf
/etc/supervisor.d/program1.conf
/etc/supervisor.d/program2.conf
Or is it only supported to have one configuration file?
Thanks.
Rod.
_______________________________________________
Supervisor-users mailing list
https://lists.supervisord.org/mailman/listinfo/supervisor-users
Marcos Cano
2014-07-14 21:55:13 UTC
Permalink
1) if you wish to have multiple files for the *.conf that supervisor
controls then the answer is yes...

here in the config file you can place the "include" statement

[include]
files = /etc/supervisor/*.ini /etc/supervisor/*/*.ini
/srv/*/supervisor/*.ini


that will make supervisor to go and look in all those paths for any program
configuration file.

greetings
Post by Matt Black
/etc/supervisor/conf.d
You can put as many .conf files in there as you like :)
​
Post by rod
Hi, I can't find reference to this in any of the docs but just reaching
out incase it is possible...
Am I able to use a configuration directory with supervisor to maintain a
separate config file for each program? So something like this...
/etc/supervisord.conf
/etc/supervisor.d/program1.conf
/etc/supervisor.d/program2.conf
Or is it only supported to have one configuration file?
Thanks.
Rod.
_______________________________________________
Supervisor-users mailing list
https://lists.supervisord.org/mailman/listinfo/supervisor-users
_______________________________________________
Supervisor-users mailing list
https://lists.supervisord.org/mailman/listinfo/supervisor-users
rod
2014-07-15 06:58:31 UTC
Permalink
I knew there must be a way, thanks very much!
Post by Marcos Cano
1) if you wish to have multiple files for the *.conf that supervisor
controls then the answer is yes...
here in the config file you can place the "include" statement
[include]
files = /etc/supervisor/*.ini /etc/supervisor/*/*.ini
/srv/*/supervisor/*.ini
that will make supervisor to go and look in all those paths for any
program configuration file.
greetings
Post by Matt Black
/etc/supervisor/conf.d
You can put as many .conf files in there as you like :)
​
Post by rod
Hi, I can't find reference to this in any of the docs but just
reaching out incase it is possible...
Am I able to use a configuration directory with supervisor to maintain a
separate config file for each program? So something like this...
/etc/supervisord.conf
/etc/supervisor.d/program1.conf
/etc/supervisor.d/program2.conf
Or is it only supported to have one configuration file?
Thanks.
Rod.
_______________________________________________
Supervisor-users mailing list
https://lists.supervisord.org/mailman/listinfo/supervisor-users
_______________________________________________
Supervisor-users mailing list
https://lists.supervisord.org/mailman/listinfo/supervisor-users
Loading...