start doorbot on reboot
This commit is contained in:
parent
833afb6097
commit
f9f2f76ad8
|
|
@ -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,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue