diff --git a/supervisor/options.py b/supervisor/options.py index b0641db8e..38c26dfef 100644 --- a/supervisor/options.py +++ b/supervisor/options.py @@ -110,6 +110,11 @@ def __init__(self, require_configfile=True): 'supervisord.conf', 'etc/supervisord.conf', '/etc/supervisord.conf'] + if self.progname.endswith('supervisorctl'): + dot_supervisorctl_conf = os.path.join( + os.path.expanduser('~'), + '.supervisorctl.conf') + searchpaths.insert(0, dot_supervisorctl_conf) self.searchpaths = searchpaths def default_configfile(self):