Using Directories as Configuration Fomats - Programming On Unix

Users browsing this thread: 1 Guest(s)
Long time nixers
Regarding XKCD 927 (that should be a word in the dictionnary), I use the include mechanism to split configuration files, and do not fear to generate configuration files whenever I want to write "echo >/etc/myprog/server".

For instance my /etc/mail/smtpd.conf for my node:

name =
include "/etc/mail/smtpd.common.conf"
include "/etc/mail/smtpd.mailer.conf"

If I had more than 2 VPS, I could generate this file. Making use of the various existing configuration file mechanisms permits to make the situation really not too bad, instead of piling layers on top of others.

Adding layers is how you end up in atrocities like

OTOH, when program entirely lack a layer of "configuration format", let's be free to add one!

Qemu for instance, full command-line. Or pure-ftpd: a filesystem-based format just like the one you described (on debian)!

Messages In This Thread
RE: Using Directories as Configuration Fomats - by josuah - 12-01-2020, 09:05 PM