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

Max Gautier mg at max.gautier.name
Tue Mar 5 10:18:26 UTC 2024


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


More information about the systemd-devel mailing list