ansible-role-openstreamingp.../templates/osp-worker@.service

16 lines
529 B
SYSTEMD
Raw Normal View History

2020-11-12 11:41:52 +01:00
[Unit]
Description=Gunicorn instance to serve OSP Workers on port %i
After=network.target
PartOf=osp.target
[Service]
User=http
Group=http
WorkingDirectory=/var/lib/osp
Environment="VIRTUAL_ENV=/opt/osp-venv"
Environment="PATH=/opt/osp-venv/bin:/usr/local/bin:/usr/bin:/bin"
ExecStart=/opt/osp-venv/bin/gunicorn app:app -k geventwebsocket.gunicorn.workers.GeventWebSocketWorker -w 1 --bind 0.0.0.0:%i --reload --access-logfile /var/log/osp/access.log --error-logfile /var/log/osp/error.log
[Install]
WantedBy=multi-user.target