setup_py3.py 374 B

123456789101112131415
  1. import subprocess
  2. def start(args, logfile, errfile):
  3. subprocess.Popen(
  4. "$PY3_GUNICORN app:app -c gunicorn_conf.py",
  5. cwd="falcon", stderr=errfile, stdout=logfile, shell=True)
  6. return 0
  7. def stop(logfile, errfile):
  8. subprocess.call(
  9. "kill `cat gunicorn.pid`",
  10. cwd="falcon", stderr=errfile, stdout=logfile, shell=True)
  11. return 0