pyinfra: added systemd service
This commit is contained in:
parent
74ba2860e4
commit
5a3ab1d87f
11
src/teams_bot/teams-bot.service.j2
Normal file
11
src/teams_bot/teams-bot.service.j2
Normal 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
|
Loading…
Reference in a new issue