comparison runXena.py @ 31:bb84d3bc5308

make Xena VM already running on ... message more useful for adding the data hub
author jingchunzhu <jingchunzhu@gmail.com>
date Tue, 21 Jul 2015 21:09:37 -0700
parents 77f5d8cbac77
children 63b1ba1e3424
comparison
equal deleted inserted replaced
30:77f5d8cbac77 31:bb84d3bc5308
97 # process goes into daemon mode. 97 # process goes into daemon mode.
98 # 98 #
99 if not xenaIsRunning: 99 if not xenaIsRunning:
100 xenaPort = xena.port(testIfAvailable=True, findNewPort=True) 100 xenaPort = xena.port(testIfAvailable=True, findNewPort=True)
101 fp.write("Starting Xena VM on %s:%s\n" % (hostname, xenaPort)) 101 fp.write("Starting Xena VM on %s:%s\n" % (hostname, xenaPort))
102 fp.write("You can add %s:%s to Xena Data Hub\n" % (hostname, xenaPort)) 102 fp.write("You can add http://%s:%s to Xena Data Hub\n" % (hostname, xenaPort))
103 else: 103 else:
104 fp.write("Xena VM already running on %s:%s\n" % (hostname, xenaPort)) 104 fp.write("Xena VM already running on %s:%s\n" % (hostname, xenaPort))
105 fp.write("You can add %s:%s to Xena Data Hub\n" % (hostname, xenaPort)) 105 fp.write("You can add http://%s:%s to Xena Data Hub\n" % (hostname, xenaPort))
106 fp.close() 106 fp.close()
107 107
108 elif sys.argv[1] == "stop": 108 elif sys.argv[1] == "stop":
109 # 109 #
110 # When stopping Xena, if it's currently running, report that Xena 110 # When stopping Xena, if it's currently running, report that Xena