From 12b0b3bb6027b9c583146b035579491053270a31 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 26 Oct 2012 08:39:20 -0700 Subject: [PATCH] add filemon pid path config for linux --- edbob/filemon/linux.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/edbob/filemon/linux.py b/edbob/filemon/linux.py index 23bbad1..d5902cc 100644 --- a/edbob/filemon/linux.py +++ b/edbob/filemon/linux.py @@ -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):