start doorbot on reboot

This commit is contained in:
missytake 2025-12-06 13:55:55 +01:00
parent 833afb6097
commit f9f2f76ad8
Signed by: missytake
GPG key ID: 04CC6658320518DF
2 changed files with 7 additions and 4 deletions

View file

@ -85,14 +85,14 @@ if not initialized:
unit_file = files.put(
src="doorbot.service",
dest="/home/user/.config/systemd/user/doorbot.service",
dest="/etc/systemd/system/doorbot.service",
_sudo=True,
)
systemd.service(
service="doorbot.service",
user_name="user",
user_mode=True,
daemon_reload=unit_file.changed,
enabled=True,
restarted=True,
running=True,
_sudo=True,
)

View file

@ -3,9 +3,12 @@ Description=Deltachat-Bot-Gatekeeper Service
After=network.target
[Service]
Type=simple
Type=exec
ExecStart=/home/user/.local/lib/eqiva.venv/bin/python3 bot.py serve
Environment="PATH=/home/user/.local/lib/eqiva.venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games"
User=user
Group=user
WorkingDirectory=/home/user
Restart=always
[Install]