14 lines
351 B
Django/Jinja
14 lines
351 B
Django/Jinja
[Unit]
|
|
Description=Portal Service
|
|
After=network.target
|
|
StartLimitIntervalSec=0
|
|
|
|
[Service]
|
|
Type=simple
|
|
Restart=always
|
|
RestartSec=1
|
|
User={{ butter_user }}
|
|
ExecStart=/bin/bash -c 'source /home/{{ butter_user }}/portal_env/bin/activate && cd /home/{{ butter_user }}/butter-portal && flask --app butter-portal.py run'
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|