1
This commit is contained in:
parent
74d3cfa5b3
commit
710170bbc5
@ -43,7 +43,7 @@ def listserver():
|
||||
for pid in pids:
|
||||
exepath = getExePath(pid)
|
||||
cmdline = getExeCmdLine(pid)
|
||||
print pid, exepath, cmdline
|
||||
print(pid, exepath, cmdline)
|
||||
|
||||
def restartServer(str_instance_ids):
|
||||
instance_ids = str_instance_ids.split(',')
|
||||
@ -51,13 +51,13 @@ def restartServer(str_instance_ids):
|
||||
instance_id = int(instance_id)
|
||||
stop(instance_id)
|
||||
time.sleep(0.5)
|
||||
print 'wsproxy %d starting......' % instance_id
|
||||
print('wsproxy %d starting......' % instance_id)
|
||||
cmd = 'sh start_instance.sh %d' % (instance_id)
|
||||
os.popen(cmd)
|
||||
time.sleep(0.5)
|
||||
|
||||
def printHelp():
|
||||
print 'usuage: [restart]'
|
||||
print('usuage: [restart]')
|
||||
|
||||
def main(argv):
|
||||
if len(argv) == 1:
|
||||
|
Loading…
x
Reference in New Issue
Block a user