3 ms·
Config test is a human operation; you manually do it after you've edited the configuration, and if you've forgotten to do it then the next start will crash. It
by rakoo 12y ago
Config test is a human operation; you manually do it after you've edited the configuration, and if you've forgotten to do it then the next start will crash. It makes no sense to automate configtest.
- simoncion 12y ago> It makes no sense to automate configtest. Sure it does! It's a belt-and-suspenders approach that ensures that human error won't cause your system services to become unavailable. Why use a computer unless it automates tedious tasks for you and remembers to do things that you might forget? The Gentoo OpenRC BIND 9 init script runs named-checkconf every time you try to start or stop the BIND service or reload its configuration files. This automatic check has saved me a bunch of time and mental overhead over the years. The auto-check has also prevented some downtime when I -inevitably- fat-fingered something in a config file.
- rakoo 12y agoThere's a part of me that believes that on startup, a service must check the config and bail out immediately if it's invalid. If it doesn't do this automatically, there's still the option of adding the configtest in the ExecStartPre option.