* Purpose of init.scope
@ 2026-07-29 20:13 Demi Marie Obenour
2026-08-02 13:40 ` [systemd-devel] " Barry Scott
2026-08-16 16:02 ` Lennart Poettering
0 siblings, 2 replies; 5+ messages in thread
From: Demi Marie Obenour @ 2026-07-29 20:13 UTC (permalink / raw)
To: systemd development, Linux cgroups development; +Cc: Alyssa Ross
[-- Attachment #1.1: Type: text/plain, Size: 245 bytes --]
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?
--
Sincerely,
Demi Marie Obenour (she/her/hers)
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [systemd-devel] Purpose of init.scope
2026-07-29 20:13 Purpose of init.scope Demi Marie Obenour
@ 2026-08-02 13:40 ` Barry Scott
2026-08-16 16:02 ` Lennart Poettering
1 sibling, 0 replies; 5+ messages in thread
From: Barry Scott @ 2026-08-02 13:40 UTC (permalink / raw)
To: Demi Marie Obenour
Cc: systemd development, Linux cgroups development, Alyssa Ross
> On 29 Jul 2026, at 21: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?
I assume it so that every process is in a cgroup container.
But that is a guess.
Barry
> --
> Sincerely,
> Demi Marie Obenour (she/her/hers)
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [systemd-devel] Purpose of init.scope
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
1 sibling, 1 reply; 5+ messages in thread
From: Lennart Poettering @ 2026-08-16 16:02 UTC (permalink / raw)
To: Demi Marie Obenour
Cc: systemd development, Linux cgroups development, Alyssa Ross
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
--
Lennart Poettering, Berlin
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [systemd-devel] Purpose of init.scope
2026-08-16 16:02 ` Lennart Poettering
@ 2026-08-17 11:32 ` SCOTT FIELDS
2026-08-18 18:02 ` Demi Marie Obenour
0 siblings, 1 reply; 5+ messages in thread
From: SCOTT FIELDS @ 2026-08-17 11:32 UTC (permalink / raw)
To: Lennart Poettering, Demi Marie Obenour
Cc: systemd development, Linux cgroups development, Alyssa Ross
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."
________________________________________
From: systemd-devel <systemd-devel-bounces@lists.freedesktop.org> on behalf of Lennart Poettering <lennart@poettering.net>
Sent: Sunday, August 16, 2026 11:02 AM
To: Demi Marie Obenour <demiobenour@gmail.com>
Cc: systemd development <systemd-devel@lists.freedesktop.org>; Linux cgroups development <cgroups@vger.kernel.org>; Alyssa Ross <hi@alyssa.is>
Subject: [EXTERNAL] Re: [systemd-devel] Purpose of init.scope
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
--
Lennart Poettering, Berlin
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [systemd-devel] Purpose of init.scope
2026-08-17 11:32 ` SCOTT FIELDS
@ 2026-08-18 18:02 ` Demi Marie Obenour
0 siblings, 0 replies; 5+ messages in thread
From: Demi Marie Obenour @ 2026-08-18 18:02 UTC (permalink / raw)
To: SCOTT FIELDS, Lennart Poettering
Cc: systemd development, Linux cgroups development, Alyssa Ross
[-- 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 --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-08-18 18:02 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox