Enable user session linger for runner users.
This commit is contained in:
parent
92740834a2
commit
9d164c16a5
|
@ -46,5 +46,12 @@ class podmanrunner::runner (
|
|||
owner => "${username}${x}",
|
||||
group => "${username}${x}",
|
||||
}
|
||||
exec { "enable-${username}${x}-linger":
|
||||
command => "loginctl enable-linger ${username}${x}",
|
||||
path => '/usr/bin:/usr/sbin:/bin',
|
||||
provider => shell,
|
||||
logoutput => false,
|
||||
unless => "test -f /var/lib/systemd/linger/${username}${x}",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue