pyinfra: enable-linger

This commit is contained in:
missytake 2023-10-08 14:15:13 +02:00
parent cc4490db49
commit 6e1b3cfe6b

View file

@ -78,3 +78,8 @@ def deploy_teams_bot(unix_user: str, bot_email: str, bot_passwd: str, dbdir: str
_su_user=unix_user,
_use_su_login=True,
)
server.shell(
name=f"enable {unix_user}'s systemd units to auto-start at boot",
commands=[f"loginctl enable-linger {unix_user}"],
)