diff --git a/manifests/runner.pp b/manifests/runner.pp index 47161b6..8c56700 100644 --- a/manifests/runner.pp +++ b/manifests/runner.pp @@ -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}", + } } }