|
@@ -323,7 +323,10 @@ def main():
|
|
|
setup_user_info()
|
|
setup_user_info()
|
|
|
|
|
|
|
|
pid_file = os.path.abspath(os.path.join(root, options.pid_file))
|
|
pid_file = os.path.abspath(os.path.join(root, options.pid_file))
|
|
|
- pidfile_context = TimeOutPIDLockFile(pid_file, LOCKFILE_TIMEOUT)
|
|
|
|
|
|
|
+ if sys.version_info[0] > 2:
|
|
|
|
|
+ pidfile_context = TimeoutPIDLockFile(pid_file, LOCKFILE_TIMEOUT)
|
|
|
|
|
+ else:
|
|
|
|
|
+ pidfile_context = TimeOutPIDLockFile(pid_file, LOCKFILE_TIMEOUT)
|
|
|
|
|
|
|
|
existing_pid = pidfile_context.read_pid()
|
|
existing_pid = pidfile_context.read_pid()
|
|
|
if existing_pid:
|
|
if existing_pid:
|