On Thu, 2023-08-17 at 16:10 +0200, Franck Bui wrote:
On 8/14/23 12:34, Martin Wilck via openSUSE Factory wrote:
But having to copy stuff from /usr/lib to /etc has become commonplace, so perhaps storing the default config file as /usr/lib/systemd/xxx.conf or /usr/lib/systemd/xxx.d/00-defaults.conf should be sufficient.
Wouldn't that suggest to override the defaults with /etc/systemd/xxx.conf or /etc/systemd/xxx.d/00-defaults.conf ?
In a way, yes. I suppose the file would have comments at the top, hinting how to override the settings. Actually the files contain such hints already, e.g. in /etc/systemd.journald.conf: # Entries in this file show the compile time defaults. Local configuration # should be created by either modifying this file, or by creating "drop-ins" in # the journald.conf.d/ subdirectory. The latter is generally recommended. # Defaults can be restored by simply deleting this file and all drop-ins. # # Use 'systemd-analyze cat-config systemd/journald.conf' to display the full config. The text "by either modifying this file" would need to be adapted, and a hint would need to be added that drop-ins under /usr/lib override settings from /etc/journald.conf. Otherwise this should be fine. OTOH, if people memorize "systemd-analyze cat-config", we won't need these hints any more. Will they? Martin