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