diff --git a/src/teams_bot/teams-bot.service.j2 b/src/teams_bot/teams-bot.service.j2 new file mode 100644 index 0000000..929421a --- /dev/null +++ b/src/teams_bot/teams-bot.service.j2 @@ -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