|
|
@ -72,9 +72,7 @@ if __name__ == "__main__":
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
with open(PID_FILE, "w") as f:
|
|
|
|
with open(PID_FILE, "w") as f:
|
|
|
|
f.write(str(os.getpid()))
|
|
|
|
f.write(str(os.getpid()))
|
|
|
|
print(""
|
|
|
|
print("" "Wrote PID to f" "ile the file " + PID_FILE)
|
|
|
|
"Wrote PID to f"
|
|
|
|
|
|
|
|
"ile the file "+PID_FILE)
|
|
|
|
|
|
|
|
f.close()
|
|
|
|
f.close()
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
asyncio.get_event_loop().run_until_complete(main())
|
|
|
|
asyncio.get_event_loop().run_until_complete(main())
|
|
|
@ -87,6 +85,3 @@ if __name__ == "__main__":
|
|
|
|
os.remove(PID_FILE)
|
|
|
|
os.remove(PID_FILE)
|
|
|
|
finally:
|
|
|
|
finally:
|
|
|
|
sys.exit(0)
|
|
|
|
sys.exit(0)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|