From: Demi Marie Obenour <demiobenour@gmail.com>
To: SCOTT FIELDS <Scott.Fields@kyndryl.com>,
Lennart Poettering <lennart@poettering.net>
Cc: systemd development <systemd-devel@lists.freedesktop.org>,
Linux cgroups development <cgroups@vger.kernel.org>,
Alyssa Ross <hi@alyssa.is>
Subject: Re: [systemd-devel] Purpose of init.scope
Date: Tue, 18 Aug 2026 14:02:06 -0400 [thread overview]
Message-ID: <6335b664-a04c-40c5-ab95-ba459bf582ab@gmail.com> (raw)
In-Reply-To: <IA1PR14MB782409DC6E8D76E14EE156238AA72@IA1PR14MB7824.namprd14.prod.outlook.com>
[-- Attachment #1.1: Type: text/plain, Size: 1397 bytes --]
On 8/17/26 07:32, SCOTT FIELDS wrote:
> For anyone interested:
>
> https://github.com/systemd/systemd/pull/1116
>
> "This moves PID 1 into a new "init.scope" implicit scope unit in the root
> slice. This is necessary since on the unified hierarchy cgroups may
> either contain subgroups or processes but not both. PID 1 hence has to
> move out of the root cgroup (strictly speaking the root cgroup is the
> only one where processes and subgroups are still allowed, but in order
> to support containers nicey, we move PID 1 into the new scope in all
> cases.) This new unit is also used on legacy hierarchy setups. It's
> actually pretty useful on all systems, as it can then be used to filter
> journal messages coming from PID 1, and so on."
Oh, that explains why PID 1 is not just left in the root cgroup. I missed
the container use-case.
The project I am working on will never run in a container so that is not
a concern.
> On Mi, 29.07.26 16:13, Demi Marie Obenour (demiobenour@gmail.com) wrote:
>
>> What is the purpose of having PID 1 in init.scope? Is it functionally
>> necessary, or is it solely for consistency with when systemd is
>> running in a container or as a user service manager?
>
> PID 1 needs to live somehwere, so that's where we put it. Where else
> would you put it?
>
> Lennart
--
Sincerely,
Demi Marie Obenour (she/her/hers)
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2026-08-18 18:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-29 20:13 Purpose of init.scope Demi Marie Obenour
2026-08-02 13:40 ` [systemd-devel] " Barry Scott
2026-08-16 16:02 ` Lennart Poettering
2026-08-17 11:32 ` SCOTT FIELDS
2026-08-18 18:02 ` Demi Marie Obenour [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6335b664-a04c-40c5-ab95-ba459bf582ab@gmail.com \
--to=demiobenour@gmail.com \
--cc=Scott.Fields@kyndryl.com \
--cc=cgroups@vger.kernel.org \
--cc=hi@alyssa.is \
--cc=lennart@poettering.net \
--cc=systemd-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox