[systemd-devel] Customize configuration at compile-time vs /usr/lib/systemd/*/*.conf.d

Nils Kattenbeck nilskemail at gmail.com
Tue Mar 5 13:23:22 UTC 2024


Hi, I am not sure if setting the compile time defaults is possible but in
general distributions should ship their configuration in /usr/... and end
users should make their adjustments in /etc/...

On Tue, Mar 5, 2024, 12:30 Max Gautier <mg at max.gautier.name> wrote:

> Hi,
>
> journald.conf (as well as other components) in the systemd source tree
> has the following mention (emphasis mine):
>
> # **Entries in this file show the compile time defaults**. Local
> configuration
> # should be created by either modifying this file (or a copy of it placed
> in
> # /etc/ if the original file is shipped in /usr/), or by creating
> "drop-ins" in
> # the /etc/systemd/journald.conf.d/ directory. The latter is generally
> # recommended. Defaults can be restored by simply deleting the main
> # configuration file and all drop-ins located in /etc/.
>
> However, I cannot find a knob to use to change that default
> configuration in meson_options or by looking through src/journal and
> grepping.
> Should distributions simply use drop-ins in
> /usr/lib/systemd/journald.conf.d/ ? (for journald). It's not that it's
> hard, but the wording seems to imply that "primary" distributors (aka
> the one compiling systemd) should defined compile-time defaults, and
> /usr/lib/systemd/*.conf.d should be for overriding that.
>
> Am I missing documentation somewhere ?
>
> Thanks
>
> --
> Max Gautier
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20240305/dd6ebc71/attachment.htm>


More information about the systemd-devel mailing list