django-for-runners_ynh/conf/systemd.service

18 lines
342 B
SYSTEMD
Raw Normal View History

2020-12-12 19:37:20 +01:00
[Unit]
2022-09-18 17:49:33 +02:00
Description=__APP__ server
2020-12-12 19:37:20 +01:00
After=redis.service postgresql.service
[Service]
User=__APP__
Group=__APP__
WorkingDirectory=__DATA_DIR__/
2020-12-12 19:37:20 +01:00
ExecStart=__DATA_DIR__/venv/bin/gunicorn --config __DATA_DIR__/gunicorn.conf.py wsgi
2020-12-12 19:37:20 +01:00
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=__APP__-server
[Install]
WantedBy=multi-user.target