From 5a3ab1d87f1044ba102ebe0dd315594c14a5df17 Mon Sep 17 00:00:00 2001 From: missytake Date: Sun, 8 Oct 2023 11:39:06 +0200 Subject: [PATCH] pyinfra: added systemd service --- src/teams_bot/teams-bot.service.j2 | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/teams_bot/teams-bot.service.j2 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