Commit 0c650606 authored by Dimitris Aragriorgs's avatar Dimitris Aragriorgs
Browse files

Fix previous commit concerning pidfile

Signed-off-by: default avatarDimitris Aragriorgs <>
parent b526f9ae
......@@ -962,8 +962,7 @@ if __name__ == "__main__":
pidfile = daemon.pidlockfile.TimeoutPIDLockFile(
config["general"]["pidfile"], 10)
# Remove any stale PID files, left behind by previous invocations
if (daemon.runner.is_pidfile_stale(pidfile) or
pidfile.read_pid() is None):
if daemon.runner.is_pidfile_stale(pidfile):
logger.warning("Removing stale PID lock file %s", pidfile.path)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment