django_example_ynh/conf/django_ynh.service
JensDiemer f578f144a3 init
2020-12-23 19:58:33 +01:00

17 lines
360 B
Desktop File

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