Browse Source

18938 Pointed to the proper PID file

Mike Smith 11 years ago
parent
commit
f151eee5f0
1 changed files with 8 additions and 8 deletions
  1. 8 8
      play-slick/setup.py

+ 8 - 8
play-slick/setup.py

@@ -22,20 +22,20 @@ def start(args, logfile):
 
   return 0
 def stop(logfile):
-  if os.name == 'nt':
-    with open("./play-slick/target/universal/play-slick-1.0-SNAPSHOT/RUNNING_PID") as f:
-      pid = int(f.read())
-      os.kill(pid, 9)
-  else:
+  #if os.name == 'nt':
+  #  with open("./play-slick/target/universal/play-slick-1.0-SNAPSHOT/RUNNING_PID") as f:
+  #    pid = int(f.read())
+  #    os.kill(pid, 9)
+  #else:
     #p = subprocess.Popen(['ps', 'ef'], stdout=subprocess.PIPE)
     #out, err = p.communicate()
     #for line in out.splitlines():
     #  if 'NettyServer' in line:
     #    pid = int(line.split(None, 2)[1])
     #    os.kill(pid, 9)
-    with open("./play-slick/target/universal/play-slick-1.0-SNAPSHOT/play-slick-1.0-SNAPSHOT/RUNNING_PID") as f:
-      pid = int(f.read())
-      os.kill(pid, 9)
+  with open("./play-slick/target/universal/play-slick-1.0-SNAPSHOT/RUNNING_PID") as f:
+    pid = int(f.read())
+    os.kill(pid, 9)
 
   try:
     #os.remove("play-slick/target/universal/play-slick-1.0-SNAPSHOT/RUNNING_PID")