add filemon pid path config for linux

This commit is contained in:
Lance Edgar 2012-10-26 08:39:20 -07:00
parent 01972f4c18
commit 12b0b3bb60

View file

@ -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):