3 ms·
I don't know of any executable configuration files on any Unix derivatives. There are init scripts, but they are not configuration; they are instructions. Ther
by monstermonster 12y ago
I don't know of any executable configuration files on any Unix derivatives. There are init scripts, but they are not configuration; they are instructions.
There are scripts with metadata attached (rc.d items) which may be ambiguous but that is no different from a shared library containing an export table or a set of runtime linker dependencies.
- sethrin 12y agoSystemd unit files, as far as I am aware, are functional replacements for init scripts. They do contain executable code, which is perhaps unavoidable. However, they are primarily what you would call a configuration file. Given that they are functionally equivalent to init scripts, init scripts must also handle configuration. You're making a semantic argument, not a technical one. Why is it a good thing that your init system consist entirely of executable scripts? Because to me that sort of arbitrary executable code would be something to minimize: abstract out common functionality, DRY, and have each component do as little as necessary. If you believe otherwise, please support that idea.