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

Fix previous commit concerning pidfile

Signed-off-by: default avatarDimitris Aragriorgs <dimara@grnet.gr>
parent b526f9ae
...@@ -962,8 +962,7 @@ if __name__ == "__main__": ...@@ -962,8 +962,7 @@ if __name__ == "__main__":
pidfile = daemon.pidlockfile.TimeoutPIDLockFile( pidfile = daemon.pidlockfile.TimeoutPIDLockFile(
config["general"]["pidfile"], 10) config["general"]["pidfile"], 10)
# Remove any stale PID files, left behind by previous invocations # Remove any stale PID files, left behind by previous invocations
if (daemon.runner.is_pidfile_stale(pidfile) or if daemon.runner.is_pidfile_stale(pidfile):
pidfile.read_pid() is None):
logger.warning("Removing stale PID lock file %s", pidfile.path) logger.warning("Removing stale PID lock file %s", pidfile.path)
pidfile.break_lock() pidfile.break_lock()
......
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