add filemon pid path config for linux
This commit is contained in:
parent
01972f4c18
commit
12b0b3bb60
1 changed files with 4 additions and 1 deletions
|
@ -87,7 +87,10 @@ def get_pid_path():
|
|||
"""
|
||||
|
||||
basename = os.path.basename(sys.argv[0])
|
||||
return '/tmp/%s_filemon.pid' % basename
|
||||
pid_path = edbob.config.get('%s.filemon' % basename, 'pid_path')
|
||||
if not pid_path:
|
||||
pid_path = '/tmp/%s_filemon.pid' % basename
|
||||
return pid_path
|
||||
|
||||
|
||||
def start_daemon(appname, daemonize=True):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue