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,13 +101,13 @@ def main():
pf = file(atlas_pid_file, 'r')
pid = pf.read().strip()
pf.close()
if mc.exist_pid((int)(pid)):
if is_setup:
print "Cannot run setup when server is running."
mc.server_already_running(pid)
else:
mc.server_pid_not_running(pid)
if pid != "":
if mc.exist_pid((int)(pid)):
if is_setup:
print "Cannot run setup when server is running."
mc.server_already_running(pid)
else:
mc.server_pid_not_running(pid)
if is_hbase and mc.is_hbase_local(confdir):
print "configured for local hbase."
......
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