Re: openrc standardised checkconfig

Michael Orlitzky <[email protected]> Mon, 22 Jun 2026 22:18:33 -0400
Newsgroups gmane.linux.gentoo.devel
Message-ID <ajns-VK7guwYsQRS@stitch>
On 2026-06-22 20:55:39, Jaco Kroon wrote:
> Hi All,
> 
> Just naming but a few:
> 
> apache2, php-fpm uses configtest
> haproxy, sshd, syslog-ng, dovecot uses checkconfig
> 
> I'd like to suggest that we at least encourage use of the latter, if not 
> make it a standard function (which just outputs "not supported" if the 
> function isn't found).

If it's possible to check the config for errors, doing so should be
baked in to (re)start/reload:

https://github.com/OpenRC/openrc/blob/master/service-script-guide.md#dont-restartreload-with-a-broken-config

Then we don't have to worry about remembering a nonstandard name, or
at least it becomes a lot less important.