c3lf-system-3/deploy/ansible/playbooks/templates/c3lf-sys3.service.j2

16 lines
No EOL
355 B
Django/Jinja

[Unit]
Description=standalone c3lf-sys3 server
After=network.target
[Service]
Type=notify
WorkingDirectory=/var/www/c3lf-sys3
ExecStart=/var/www/c3lf-sys3/venv/bin/python3 /var/www/c3lf-sys3/repo/core/server.py
Environment=DJANGO_SETTINGS_MODULE=core.settings
Restart=always
RestartSec=5
User=www-data
Group=www-data
[Install]
WantedBy=multi-user.target