]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
rc: add a manual entry for ${name}_setup
authorFranco Fichtner <franco@opnsense.org>
Fri, 11 Nov 2022 21:20:13 +0000 (22:20 +0100)
committerMariusz Zaborski <oshogbo@FreeBSD.org>
Fri, 11 Nov 2022 21:21:39 +0000 (22:21 +0100)
commitb05e7e702293735a2b78b8bbbd63501c4bbc6dce
tree0d519fd89e55c37e224b0d11d16c0735abb2766b
parent11ed0a95bfa76791dc6428eb2d47a986c0c6f8a3
rc: add a manual entry for ${name}_setup

${name}_prepend is suboptimal as it is prepended to the actual
command being run. Therefore the term "commandS to prepend"
is misleading and no clear separation takes place for setup tasks
that may be required like changing a config file permission or
generating a configuration file prior to service start.

The other reason is that {argument}_precmd is a service-side
variable and cannot be repurposed from the user-side.

Reviewed by: pauamma
Differential Revision: https://reviews.freebsd.org/D36210
share/man/man8/rc.subr.8