autosuspend icon indicating copy to clipboard operation
autosuspend copied to clipboard

Move configuration under /etc/autosuspend *directory*

Open Flowdalic opened this issue 2 years ago • 2 comments

Currently autosuspend's configuration files are placed directly under /etc/. Best practice is to place all configuration files of a project under a single directory under /etc. For example, in autosuspend's case, /etc/autosuspend/autosuspend.conf instead of /etc/autosuspend.conf.

Flowdalic avatar Aug 07 '23 14:08 Flowdalic

Is there any standard that is requesting this? When I look at my current /etc folder, I see a several instances where programs need multiple config files directly from /etc.

$ rpm -ql dLeyna | grep etc
/etc/dleyna-renderer-service.conf
/etc/dleyna-server-service.conf

languitar avatar Aug 10 '23 11:08 languitar

Is there any standard that is requesting this?

No, but it think it is sensible and a good best practice. You are free to disagree, though.

There is probably a threshold of configuration file numbers where it is hard to argue against placing them in a directory under /etc, and two files is probably not that threshold.

When I look at my current /etc folder, I see a several instances where programs need multiple config files directly from /etc.

Sure, but on the other hand, you probably also find many instances of programs using a sub-directory. For example /etc/ssh.

Flowdalic avatar Aug 10 '23 12:08 Flowdalic

I think I'd just avoid the deprecation cycle / breaking change here for now as there's only two config files for the moment.

languitar avatar Feb 24 '24 19:02 languitar