[systemd-devel] Is there a way to find out if Delegate=yes?

Arseny Maslennikov arseny at altlinux.org
Mon Oct 24 15:25:37 UTC 2022


On Mon, Oct 24, 2022 at 06:07:39PM +0300, Yuri Kanivetsky wrote:
> Hi,
> 
> I'm experimenting with LXC containers:
> 
> https://linuxcontainers.org/lxc/getting-started/
> 
> And there's a command I don't fully understand:
> 
> systemd-run --unit=my-unit --user --scope -p "Delegate=yes" --
> lxc-start my-container
> 
> It runs lxc-start in a transient user scope with Delegate=yes, but:
> 
> $ systemctl show -p Delegate run-....scope
> Delegate=no

You're not passing `--user` to systemctl(1). The output of
`systemctl show` on a non-existent unit might be misleading.

> 
> That's on an Ubuntu server. Locally on Arch Linux I don't need
> systemd-run, lxc-start just works.
> 
> How can I see the effect of systemd-run, and why systemd-run is not
> needed on Arch Linux?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20221024/e577c444/attachment.sig>


More information about the systemd-devel mailing list