Re: Customize configuration at compile-time vs /usr/lib/systemd/*/*.conf.d

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx> 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

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux