On Thu, Aug 17, 2023 at 02:38:42PM +0000, Thorsten Kukuk wrote:
On Thu, Aug 17, Franck Bui wrote:
On 8/12/23 09:01, Olaf Hering wrote:
Fri, 11 Aug 2023 18:40:44 +0200 Franck Bui <fbui@suse.de>:
- at installation, systemd packages will stop installing (empty/template) main configuration files and instead users will find the templates in drop-in directories (such as /etc/systemd/*.conf.d/50-{local,main,xxx}.conf, exact filename to be defined).
systemd is well documented, systemd.directives(7) is one potential entry point.
Please stop polluting /etc with empty and rpm-owned configuration files.
That would be the simplest way to switch to drop-in files only from a packager POV.
However I think that a lot of users would be confused by the fact that the main config files are missing. And even worse would be tempted to reintroduce them when they would need to override the defaults as the use of drop-ins is not wide spread yet.
I disagree. Other tools did that in the past, too (most prominent one: Linux-PAM). It did take some time until people did start learning, but in the end it was quite easy. Much simpler then having the pain to update this config files later.
These are much less likely to be changed.
The advantages of shipping /etc/systemd/*.conf.d/50-local.conf are:
- it implicitly teaches users to use a drop-in file to override defaults
If they are not aware of drop-ins they will follow the search engine hits and create the main config files again.
If the dropin is already there it's quite possible they will notice it.
- it list all config options and their default in a concise form (as pointed out by Martin) which is convenient.
This is not convenient, this is the major pain for updates. Everytime, a config changes upstram and an admin made a local change, we will either have rpmsave or rpmnew files, which makes the whole thing void and all advantages are gone. And you will never get this cleaned up again.
With the fifes shipping only documentation and no actual settings there is absolutely no problem with rpmnew files. Some people might clean them up, some not, whatever. Thanks Michal