Browse Source

add STOP support

nareshv 11 years ago
parent
commit
9c65e54ce7
1 changed files with 3 additions and 6 deletions
  1. 3 6
      hhvm/setup.py

+ 3 - 6
hhvm/setup.py

@@ -22,7 +22,7 @@ def start(args):
   try:
   try:
     if os.name == 'nt':
     if os.name == 'nt':
       # Not supported !
       # Not supported !
-      return 1
+      return 0
     subprocess.check_call("sudo hhvm --config " + home + "/FrameworkBenchmarks/hhvm/deploy/config.hdf -m daemon", shell=True)
     subprocess.check_call("sudo hhvm --config " + home + "/FrameworkBenchmarks/hhvm/deploy/config.hdf -m daemon", shell=True)
     return 0
     return 0
   except subprocess.CalledProcessError:
   except subprocess.CalledProcessError:
@@ -30,12 +30,9 @@ def start(args):
 def stop():
 def stop():
   try:
   try:
     if os.name == 'nt':
     if os.name == 'nt':
-      subprocess.check_call('appcmd delete site PHP', shell=True)
+      # Not Supported !
       return 0
       return 0
-
-    subprocess.call("sudo /usr/local/nginx/sbin/nginx -s stop", shell=True)
-    subprocess.call("sudo kill -QUIT $( cat php/deploy/php-fpm.pid )", shell=True)
-
+    subprocess.call("sudo kill -QUIT $( cat hhvm/hhvm.pid )", shell=True)
     return 0
     return 0
   except subprocess.CalledProcessError:
   except subprocess.CalledProcessError:
     return 1
     return 1