mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Add ability to specify an additional PID file
This commit is contained in:
parent
f522a91ac6
commit
eceeb4ecf2
@ -28,7 +28,7 @@ class EnvLoader(object):
|
||||
DEFAULT_PID_PATH = '/var/run'
|
||||
DEFAULT_CACHE_PATH = '/var/cache/salt'
|
||||
|
||||
def __init__(self, cachedir=None, piddir=None):
|
||||
def __init__(self, cachedir=None, piddir=None, pidfilename=None):
|
||||
'''
|
||||
Constructor.
|
||||
|
||||
@ -44,4 +44,4 @@ class EnvLoader(object):
|
||||
|
||||
if not piddir and '__salt__' in globals():
|
||||
piddir = globals().get('__salt__')['config.get']('inspector.pid', '')
|
||||
self.pidfile = os.path.join(piddir or self.DEFAULT_PID_PATH, self.PID_FILE)
|
||||
self.pidfile = os.path.join(piddir or self.DEFAULT_PID_PATH, pidfilename or self.PID_FILE)
|
||||
|
Loading…
Reference in New Issue
Block a user