django_example_ynh/conf/django_example_ynh.service

18 lines
361 B
SYSTEMD
Raw Normal View History

2020-12-23 19:53:13 +01:00
[Unit]
Description=PyInventory application server
2020-12-23 19:53:13 +01:00
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