On 02/01/18 09:57 PM, Carlos E. R. wrote:
Best place for local config setting? Hmm....
/usr/local ? It would be /usr/local/etc/* for local configs, but I doubt this would work. At best, a file there would supersede the distribution file. This would have to be tested file by file, IMO.
I don't think it would work either. Take, for example the SYSTEMD.UNIT man page where it says: SYNOPSIS SYNOPSIS ... /etc/systemd/system/* /run/systemd/system/* /usr/lib/systemd/system/* ... There are other examples. Depending on context, it may be that the files in /etc/* are symlinked to the 'real' ones. It may also be that there is a priority to override. It would be nice if /usr/local/etc overrode /etc, but don't get your hopes up. It would be fantastic is there was an ETCPATH setting! Dream on! But what we have is the 'live' files in /etc/* get synmlinked. Now suppose. for example, you symlinked something that was accepted to be in /etc. lets take a ridiculous example: /etc/passwd -> /usr/local/etc/passwed Now under what conditions will that file get overwritten rather than the version in /usr/lcoal preserved though a change? Well try it with creation of new user. Ha ha ha. Now generalise that to other key files, like, perhaps, OS-type ha ha ha. Maybe things in /etc/should be symlinked. Maybe the Apache config should be local to the apache code and symlinked. Certainly having all of the config accessible in /etc/ is a goo idea, but should it all be actually located there when it belongs in another package? Having you local, language/nationality specific perhaps. in /usr/local/etc might be a good idea, but don't bank on them surviving an update. After all, if /etc/XYZ.conf is a symlink so it can be read, then it can be written and overwritten as well. unless the .rpm specifically says 'don't follow symlinks when updating then you'll have a problem. -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org