[pkg-lxc-devel] Bug#989317: systemd kill background processes after user logs out (#825394 regression)
Michael Biebl
biebl at debian.org
Thu Jun 10 11:08:50 BST 2021
Control: reassign -1 lxc
As discussed on #debian-release, I'm going to reassign this bug report
to lxc as peb has plans to add a helper script which intends to improve
the user experience when running unprivileged containers under cgroupv2.
Quoting the relevant part from IRC:
> my reason for asking is that I'd like to add an helper script to the package
> currently, under pure CGroups v2 systemd hosts, an unprivileged container can't be started without running a systemd-run --user command with some tweaks
> I'd like to provide the users with a lxc-unpriv-start script that'll do the needed work or give them hints on what to do
> anymore because systemd gets in the way. Using systemd for this,
[...]
> A short summary: Debian bullseye switched to cgroupv2 which now makes it
> necessary to run lxc-start as unprivileged user via "systemd-run -p
> Delegate=yes".
> This in turn makes the lxc processes part of the systemd --user session,
> not the login session. Which in turn requires "linger" to enable daemon
> processes to persist once a user logs out.
>
> Maybe I missed something and linger is the only option in this case (and
> lxc's README.Debian could have a note about this). Or maybe there is a
> different way to achieve what Matt is trying to do?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-lxc-devel/attachments/20210610/1732dff2/attachment.sig>
More information about the Pkg-lxc-devel
mailing list