rcctl(8) gains a "configtest" action
by from OpenBSD Journal on (#635Y3)
Antoine Jacoutot (ajacoutot@)hasaddeda "configtest"action torcctl(8):
CVSROOT:/cvsModule name:srcChanges by:ajacoutot@cvs.openbsd.org2022/09/01 01:25:32Modified files:etc/rc.d : rc.subr share/man/man8 : rc.d.8 usr.sbin/rcctl : rcctl.sh Log message:Add a new action: "configtest", to check configuration syntax of the daemon.A few adjustments will be done in the next days (like disabling this action ifthere's no specific rc_configtest function defined).e.g./etc/rc.d/sshd configtestrcctl configtest sshdidea from naddy@
This is a feature that sysadmin types have been wanting for quite a while. A consistent way to sanity check your config before loading in anger is certain to make OpenBSD users' lives better.