pyinfra: added systemd service

pull/7/head
missytake 2023-10-08 11:39:06 +02:00
parent aa23227486
commit beddedf85d
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
[Unit]
Description=run deltachat teams-bot: {{ bot_email }}
[Service]
ExecStart=/home/{{ unix_user }}/.venv/bin/teams-bot run -v
EnvironmentFile=/home/{{ unix_user }}/.env
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.target