Commit 945de013 by Sandeep Nemuri Committed by Sarath Subramanian

ATLAS-2971: Atlas fails to start if there is a empty pid file

parent b96c6b7a
......@@ -101,7 +101,7 @@ def main():
pf = file(atlas_pid_file, 'r')
pid = pf.read().strip()
pf.close()
if pid != "":
if mc.exist_pid((int)(pid)):
if is_setup:
print "Cannot run setup when server is running."
......
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