Add a new action: "configtest", to check configuration syntax of the daemon.
authorajacoutot <ajacoutot@openbsd.org>
Thu, 1 Sep 2022 07:25:32 +0000 (07:25 +0000)
committerajacoutot <ajacoutot@openbsd.org>
Thu, 1 Sep 2022 07:25:32 +0000 (07:25 +0000)
commita9970bb5dae573f58b0674bfde21aaf5c07ac5ff
treed0aebe982a630710c03851fcd1075fa1c74bfdfe
parentaf80a390dcaf227786258cbac4627fb6b7b3ffd4
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 if
there's no specific rc_configtest function defined).

e.g.
/etc/rc.d/sshd configtest
rcctl configtest sshd

idea from naddy@
etc/rc.d/rc.subr
share/man/man8/rc.d.8
usr.sbin/rcctl/rcctl.sh