bh@100: [Unit] bh@100: Description=ODFCast bh@100: Wants=network.target bh@100: bh@100: [Service] bh@100: User=odfcast bh@100: Group=odfcast bh@100: Restart=always bh@100: WorkingDirectory=/home/odfcast/odfcast/releases/current bh@100: bh@100: # === Flask === bh@100: # ExecStart=/home/odfcast/odfcast/env/bin/python3 main.py bh@100: # === eventlet === bh@100: # ExecStart=/usr/bin/gunicorn3 --bind 127.0.0.1:5000 --access-logfile - \ bh@100: # --pythonpath ../../env/lib/python3.5/site-packages/ \ bh@100: # --workers 3 --worker-class eventlet wsgi bh@100: # === gthread === bh@100: ExecStart=/usr/bin/gunicorn3 --bind 127.0.0.1:5000 --access-logfile - \ bh@100: --pythonpath ../../env/lib/python3.5/site-packages/ \ bh@100: --workers 3 --threads 4 --worker-class gthread odfcast:app bh@100: bh@100: [Install] bh@100: WantedBy=multi-user.target