From 2c00be237a147b00ed8a0ea71248add518b59c73 Mon Sep 17 00:00:00 2001 From: Martijn Vermaat <martijn@vermaat.name> Date: Tue, 19 Nov 2013 10:42:16 +0100 Subject: [PATCH] Use python-daemon >= 1.6 API --- bin/mutalyzer-batchd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/mutalyzer-batchd b/bin/mutalyzer-batchd index 5983cf35..3d03aad2 100755 --- a/bin/mutalyzer-batchd +++ b/bin/mutalyzer-batchd @@ -17,7 +17,7 @@ should be run with the mutalyzer directory as working directory. import os import sys -from daemon import pidlockfile, DaemonContext +from daemon import pidfile, DaemonContext from lockfile import LockTimeout import signal import time @@ -40,10 +40,10 @@ def daemonize(): Write PID file when it is not locked and daemonize a loop processing scheduled batch jobs. """ - pidfile = os.path.realpath(config.get('PIDfile')) + pidfile_path = os.path.realpath(config.get('PIDfile')) - lockfile = pidlockfile.TimeoutPIDLockFile(pidfile, acquire_timeout=1, - threaded=False) + lockfile = pidfile.TimeoutPIDLockFile(pidfile_path, acquire_timeout=1, + threaded=False) context = DaemonContext(working_directory=os.getcwd(), pidfile=lockfile) -- GitLab