File tree 4 files changed +21
-10
lines changed 4 files changed +21
-10
lines changed Original file line number Diff line number Diff line change 1
1
3.3.0 (Next 3.x Release)
2
2
------------------------
3
3
4
+ - ``/etc/supervisor/supervisord.conf`` has been added to the config file search
5
+ paths. Many versions of Supervisor packaged for Debian and Ubuntu have
6
+ included a patch that added this path. This difference was reported in a
7
+ number of tickets as a source of confusion and upgrade difficulties, so the
8
+ path has been added. Patch by Kelvin Wong.
9
+
4
10
- Glob patterns in the ``include`` section now support the ``host_node_name``
5
11
expansion. Patch by Paul Lockaby.
6
12
Original file line number Diff line number Diff line change @@ -16,17 +16,17 @@ file it finds.
16
16
17
17
#. :file: `/etc/supervisord.conf `
18
18
19
+ #. :file: `/etc/supervisor/supervisord.conf ` (since Supervisor 3.3.0)
20
+
19
21
#. :file: `../etc/supervisord.conf ` (Relative to the executable)
20
22
21
23
#. :file: `../supervisord.conf ` (Relative to the executable)
22
24
23
25
.. note ::
24
26
25
- Some distributions have packaged Supervisor with their own
26
- customizations. These modified versions of Supervisor may load the
27
- configuration file from locations other than those described here.
28
- Notably, Ubuntu packages have been found that use
29
- ``/etc/supervisor/supervisord.conf ``.
27
+ Many versions of Supervisor packaged for Debian and Ubuntu included a patch
28
+ that added ``/etc/supervisor/supervisord.conf `` to the search paths. The
29
+ first PyPI package of Supervisor to include it was Supervisor 3.3.0.
30
30
31
31
File Format
32
32
-----------
Original file line number Diff line number Diff line change @@ -100,7 +100,9 @@ def __init__(self, require_configfile=True):
100
100
os .path .join (here , 'supervisord.conf' ),
101
101
'supervisord.conf' ,
102
102
'etc/supervisord.conf' ,
103
- '/etc/supervisord.conf' ]
103
+ '/etc/supervisord.conf' ,
104
+ '/etc/supervisor/supervisord.conf' ,
105
+ ]
104
106
self .searchpaths = searchpaths
105
107
106
108
self .environ_expansions = {}
Original file line number Diff line number Diff line change @@ -159,10 +159,13 @@ def test_add_duplicate_long_option_key(self):
159
159
160
160
def test_searchpaths (self ):
161
161
options = self ._makeOptions ()
162
- self .assertEqual (len (options .searchpaths ), 5 )
163
- self .assertTrue ('supervisord.conf' in options .searchpaths )
164
- self .assertTrue ('etc/supervisord.conf' in options .searchpaths )
165
- self .assertTrue ('/etc/supervisord.conf' in options .searchpaths )
162
+ self .assertEqual (len (options .searchpaths ), 6 )
163
+ self .assertEqual (options .searchpaths [- 4 :], [
164
+ 'supervisord.conf' ,
165
+ 'etc/supervisord.conf' ,
166
+ '/etc/supervisord.conf' ,
167
+ '/etc/supervisor/supervisord.conf' ,
168
+ ])
166
169
167
170
def test_options_and_args_order (self ):
168
171
# Only config file exists
You can’t perform that action at this time.
0 commit comments