|
@@ -5,13 +5,13 @@ import setup_util
|
|
|
|
|
|
|
|
|
def start(args):
|
|
|
- subprocess.Popen('uwsgi --gevent 1000 --http :8080 -w hello --pidfile /tmp/uwsgi.pid', shell=True, cwd="uwsgi")
|
|
|
- return 0
|
|
|
+ subprocess.Popen('uwsgi --gevent 1000 --http :8080 -w hello --pidfile /tmp/uwsgi.pid', shell=True, cwd="uwsgi")
|
|
|
+ return 0
|
|
|
|
|
|
|
|
|
def stop():
|
|
|
- try:
|
|
|
+ try:
|
|
|
subprocess.Popen('uwsgi --stop /tmp/uwsgi.pid', shell=True, cwd="uwsgi")
|
|
|
- except OSError:
|
|
|
+ except OSError:
|
|
|
pass
|
|
|
- return 0
|
|
|
+ return 0
|