From beddedf85d34eab363821a98a43f33944036d3b8 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