gunicorn.service 486 B

12345678910111213141516
  1. [Unit]
  2. Description=YNH_APP_INSTANCE_NAME gunicorn daemon
  3. After=network.target
  4. [Service]
  5. PIDFile=/run/gunicorn/YNH_APP_INSTANCE_NAME-pid
  6. User=YNH_APP_INSTANCE_NAME
  7. Group=www-data
  8. WorkingDirectory=/opt/YNH_APP_INSTANCE_NAME
  9. ExecStart=/opt/YNH_APP_INSTANCE_NAME/venv/bin/gunicorn -c /opt/YNH_APP_INSTANCE_NAME/gunicorn_config.py wifiwithme.wsgi
  10. ExecReload=/bin/kill -s HUP $MAINPID
  11. ExecStop=/bin/kill -s TERM $MAINPID
  12. PrivateTmp=true
  13. [Install]
  14. WantedBy=multi-user.target