]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/manager.c
pid1: pass useful env vars to generators
authorLennart Poettering <lennart@poettering.net>
Tue, 12 Apr 2022 13:44:46 +0000 (15:44 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 13 Apr 2022 08:07:46 +0000 (10:07 +0200)
commit82c5db16cc843d2fcee54ccf88c5a92ab059321d
treee0a5cbdaa9136396b5fe3363b18deb2678858223
parent87d44b6e1a190a82c53df1982754f04cb6a00f0b
pid1: pass useful env vars to generators

This is inspired by this:

    https://github.com/systemd/zram-generator/blob/main/src/generator.rs#L29

Given it's easy for PID 1 to pass this to generators, I thin we should.
All generators not written by us likely want to know these things so
that the can adjust to the execution environment.
src/core/manager.c