Browse Source

Fixed stop

Andreas C. Osowski 12 years ago
parent
commit
e91b213945
1 changed files with 1 additions and 6 deletions
  1. 1 6
      lift-stateless/setup.py

+ 1 - 6
lift-stateless/setup.py

@@ -15,12 +15,7 @@ def stop():
   p = subprocess.Popen(['ps', 'aux'], stdout=subprocess.PIPE)
   p = subprocess.Popen(['ps', 'aux'], stdout=subprocess.PIPE)
   out, err = p.communicate()
   out, err = p.communicate()
   for line in out.splitlines():
   for line in out.splitlines():
-    if './sbt' in line:
+    if './run' in line:
       pid = int(line.split(None, 2)[1])
       pid = int(line.split(None, 2)[1])
       os.kill(pid, 9)
       os.kill(pid, 9)
-  try:
-    os.remove("lift-stateless/RUNNING_PID")
-  except OSError:
-    pass
-
   return 0
   return 0