pyinfra: enable-linger
This commit is contained in:
parent
cc4490db49
commit
6e1b3cfe6b
|
@ -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}"],
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue