Browse Source

master Fixed a number of setup.py bugs

Mike Smith 11 years ago
parent
commit
72498ddd14
3 changed files with 6 additions and 6 deletions
  1. 1 1
      servicestack/setup_nginx.py
  2. 2 2
      wai/setup.py
  3. 3 3
      yesod/setup.py

+ 1 - 1
servicestack/setup_nginx.py

@@ -50,7 +50,7 @@ def stop(logfile, errfile):
   p2 = subprocess.Popen(['ps', 'aux'], stdout=subprocess.PIPE)
   out, err = p2.communicate()
   for line in out.splitlines():
-    if 'sbin/nginx' in line:
+    if 'nginx: master' in line:
       pid = int(line.split(None, 2)[1])
       os.kill(pid, 15)
 

+ 2 - 2
wai/setup.py

@@ -12,7 +12,7 @@ def start(args, logfile, errfile):
 
   db_host = args.database_host
   threads = str(args.max_threads)
-  subprocess.Popen("dist/build/bench/bench " + threads + " " + db_host + " +RTS -A4M -N -qg2 -I0 -G2 > /dev/null", shell=True, cwd="wai/bench", stderr=errfile, stdout=logfile)
+  subprocess.Popen("dist/build/bench/bench " + threads + " " + db_host + " +RTS -A4M -N -qg2 -I0 -G2", shell=True, cwd="wai/bench", stderr=errfile, stdout=logfile)
   return 0
 
 def stop(logfile, errfile):
@@ -22,7 +22,7 @@ def stop(logfile, errfile):
     if 'bench' in line:
       try:
         pid = int(line.split(None, 2)[1])
-        os.kill(pid, 9)
+        os.kill(pid, 15)
       except OSError:
         pass
 

+ 3 - 3
yesod/setup.py

@@ -14,17 +14,17 @@ def start(args, logfile, errfile):
 
   db_host = args.database_host
   threads = str(args.max_threads)
-  subprocess.Popen("dist/build/bench/bench " + threads + " " + db_host + " +RTS -A4M -N -qg2 -I0 -G2 > /dev/null", shell=True, cwd="yesod/bench", stderr=errfile, stdout=logfile)
+  subprocess.Popen("dist/build/bench/bench " + threads + " " + db_host + " +RTS -A4M -N -qg2 -I0 -G2", shell=True, cwd="yesod/bench", stderr=errfile, stdout=logfile)
   return 0
 
-def stop(logfile):
+def stop(logfile, errfile):
   p = subprocess.Popen(['ps', 'aux'], stdout=subprocess.PIPE)
   out, err = p.communicate()
   for line in out.splitlines():
     if 'bench' in line:
       try:
         pid = int(line.split(None, 2)[1])
-        os.kill(pid, 9)
+        os.kill(pid, 15)
       except OSError:
         pass