Files
breccia-mapper/roles/webserver/templates/uwsgi-service.j2
James Graham 74d3c1b091 deploy: Use RedHat Software Collections
RHSCL provides patched versions of Python and Nginx
2020-03-30 17:18:19 +01:00

13 lines
353 B
Django/Jinja

[Unit]
Description=uWSGI Emperor Service
[Service]
ExecStartPre=/bin/bash -c 'mkdir -p /run/uwsgi; chown {{ web_user }}:{{ web_group }} /run/uwsgi; source scl_source rh-python36'
ExecStart=/bin/scl enable rh-python36 "uwsgi --emperor /etc/uwsgi/sites"
Restart=always
KillSignal=SIGQUIT
Type=notify
NotifyAccess=all
[Install]
WantedBy=multi-user.target