`systemctl --user list-units` includes user units, but also includes system units. This makes it difficult to see the status of user services, because they're mixed in with all the system services. It also makes it difficult for scripts to act on only user-level services. `systemctl --user list-unit-files` seems to do the right thing - it displays only user unit files. systemd version 216
Can you be more specific: what unit do you say that are unexpected?
Created attachment 115998 [details] unexpected user units Sorry, I thought all system units were reported (and that it would be obvious). But on further inspection, it seems to be just .device, .mount and .swap system-level units which are reported. Attached are the lines from my own user's `systemctl --user list-units` which I don't think should be present.
Those are expected. In the user instance, device and mount and swap units are created to mirror current state of the system.
Thanks for the clarification. I've looked for documentation about this, but couldn't find any description of why this would be the case. I don't suppose you know where it's documented?
I don't think it is or needs to be documented in any special way. Simply put, user services can depend on devices and other system-wide state the same as a system services.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.