django-for-runners_ynh/conf/systemd.service
Jens Diemer 42307cec28 Apply manageprojects updates
https://github.com/jedie/cookiecutter_templates/#base-django-yunohost-app migrated from Poetry to
pip-tools and to manifest v2

Apply these changes here.
2023-11-09 20:55:33 +01:00

17 lines
342 B
Desktop File

[Unit]
Description=__APP__ server
After=redis.service postgresql.service
[Service]
User=__APP__
Group=__APP__
WorkingDirectory=__DATA_DIR__/
ExecStart=__DATA_DIR__/venv/bin/gunicorn --config __DATA_DIR__/gunicorn.conf.py wsgi
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=__APP__-server
[Install]
WantedBy=multi-user.target