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 31
31
- Files included via the ``[include]`` section are now logged at the ``INFO``
32
32
level instead of ``WARN``. Patch by Daniel Hahler.
33
33
34
+ - ``/etc/supervisor/supervisord.conf`` has been added to the config file search
35
+ paths. Many versions of Supervisor packaged for Debian and Ubuntu have
36
+ included a patch that added this path. This difference was reported in a
37
+ number of tickets as a source of confusion and upgrade difficulties, so the
38
+ path has been added. Patch by Kelvin Wong.
39
+
34
40
3.2.3 (2016-03-19)
35
41
------------------
36
42
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 @@ -108,7 +108,9 @@ def __init__(self, require_configfile=True):
108
108
os .path .join (here , 'supervisord.conf' ),
109
109
'supervisord.conf' ,
110
110
'etc/supervisord.conf' ,
111
- '/etc/supervisord.conf' ]
111
+ '/etc/supervisord.conf' ,
112
+ '/etc/supervisor/supervisord.conf' ,
113
+ ]
112
114
self .searchpaths = searchpaths
113
115
114
116
self .environ_expansions = {}
Original file line number Diff line number Diff line change @@ -161,10 +161,13 @@ def test_add_duplicate_long_option_key(self):
161
161
162
162
def test_searchpaths (self ):
163
163
options = self ._makeOptions ()
164
- self .assertEqual (len (options .searchpaths ), 5 )
165
- self .assertTrue ('supervisord.conf' in options .searchpaths )
166
- self .assertTrue ('etc/supervisord.conf' in options .searchpaths )
167
- self .assertTrue ('/etc/supervisord.conf' in options .searchpaths )
164
+ self .assertEqual (len (options .searchpaths ), 6 )
165
+ self .assertEqual (options .searchpaths [- 4 :], [
166
+ 'supervisord.conf' ,
167
+ 'etc/supervisord.conf' ,
168
+ '/etc/supervisord.conf' ,
169
+ '/etc/supervisor/supervisord.conf' ,
170
+ ])
168
171
169
172
def test_options_and_args_order (self ):
170
173
# Only config file exists
You can’t perform that action at this time.
0 commit comments