Skip to content

Added standard Debian location for Supervisor configuration file #414

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions supervisor/options.py
Original file line number Diff line number Diff line change
@@ -101,7 +101,8 @@ def __init__(self, require_configfile=True):
searchpaths = [os.path.join(here, 'etc', 'supervisord.conf'),
os.path.join(here, 'supervisord.conf'),
'supervisord.conf', 'etc/supervisord.conf',
'/etc/supervisord.conf']
'/etc/supervisord.conf',
'/etc/supervisor/supervisord.conf']
self.searchpaths = searchpaths

def default_configfile(self):
@@ -305,7 +306,7 @@ def realize(self, args=None, doc=None,

def process_config(self, do_usage=True):
"""Process configuration data structure.

This includes reading config file if necessary, setting defaults etc.
"""
if self.configfile:
@@ -811,7 +812,7 @@ def processes_from_section(self, parser, section, group_name,
raise ValueError(
'%(process_num) must be present within process_name when '
'numprocs > 1')

if stopasgroup and not killasgroup:
raise ValueError("Cannot set stopasgroup=true and killasgroup=false")

@@ -1183,7 +1184,7 @@ def dropPrivileges(self, user):

# always put our primary gid first in this list, otherwise we can
# lose group info since sometimes the first group in the setgroups
# list gets overwritten on the subsequent setgid call (at least on
# list gets overwritten on the subsequent setgid call (at least on
# freebsd 9 with python 2.7 - this will be safe though for all unix
# /python version combos)
groups.insert(0, gid)