Understand elogind's resource management and scope model
mainElogind is a standalone daemon and does not rely on a global systemd instance. This results in several key behavioral differences regarding resource management:
- No Global Cgroups: Unlike systemd, elogind does not use a global cgroup-based resource management system. The directory
/run/systemd/slicesis not used and will remain empty or non-existent. - Scopes vs. Sessions: Elogind does not have a distinct concept of a "scope" internally; a scope is treated the same as a session. Any API calls attempting to refer to scopes will return an error code.
- Process Organization: Elogind places processes in private cgroups for organizational purposes without installing controllers. This allows it to map processes to sessions even if they undergo a double-fork and are reparented to PID 1.
- Virtual Terminals: Elogind does not manage virtual terminals.