|
@@ -13,30 +13,11 @@ def start(args):
|
|
|
cwd + "/server.py", "127.0.0.1", args.database_host)
|
|
|
|
|
|
subprocess.check_call("sudo pip install -r requirements.txt", cwd=cwd, shell=True)
|
|
|
-
|
|
|
- subprocess.Popen("python %s/FrameworkBenchmarks/tornado/server.py --port=8000 --logging=error" % home, shell=True, cwd=cwd)
|
|
|
- subprocess.Popen("python %s/FrameworkBenchmarks/tornado/server.py --port=8001 --logging=error" % home, shell=True, cwd=cwd)
|
|
|
- subprocess.Popen("python %s/FrameworkBenchmarks/tornado/server.py --port=8002 --logging=error" % home, shell=True, cwd=cwd)
|
|
|
- subprocess.Popen("python %s/FrameworkBenchmarks/tornado/server.py --port=8003 --logging=error" % home, shell=True, cwd=cwd)
|
|
|
- subprocess.Popen("python %s/FrameworkBenchmarks/tornado/server.py --port=8004 --logging=error" % home, shell=True, cwd=cwd)
|
|
|
- subprocess.Popen("python %s/FrameworkBenchmarks/tornado/server.py --port=8005 --logging=error" % home, shell=True, cwd=cwd)
|
|
|
- subprocess.Popen("python %s/FrameworkBenchmarks/tornado/server.py --port=8006 --logging=error" % home, shell=True, cwd=cwd)
|
|
|
- subprocess.Popen("python %s/FrameworkBenchmarks/tornado/server.py --port=8007 --logging=error" % home, shell=True, cwd=cwd)
|
|
|
- subprocess.check_call("sudo /usr/local/nginx/sbin/nginx -c " + home + "/FrameworkBenchmarks/tornado/deploy/nginx.conf", shell=True)
|
|
|
-
|
|
|
+ subprocess.Popen("python %s/FrameworkBenchmarks/tornado/server.py --port=8080 --logging=error" % home, shell=True, cwd=cwd)
|
|
|
return 0
|
|
|
|
|
|
|
|
|
def stop():
|
|
|
-
|
|
|
- try:
|
|
|
-
|
|
|
- subprocess.call("sudo /usr/local/nginx/sbin/nginx -s stop", shell=True)
|
|
|
-
|
|
|
- except subprocess.CalledProcessError:
|
|
|
- #TODO: Better handle exception.
|
|
|
- pass
|
|
|
-
|
|
|
p = subprocess.Popen(['ps', 'aux'], stdout=subprocess.PIPE)
|
|
|
out, err = p.communicate()
|
|
|
for line in out.splitlines():
|