diff options
author | Franco Fichtner <franco@opnsense.org> | 2022-11-12 00:20:13 +0300 |
---|---|---|
committer | Mariusz Zaborski <oshogbo@FreeBSD.org> | 2022-11-12 00:21:39 +0300 |
commit | b05e7e702293735a2b78b8bbbd63501c4bbc6dce (patch) | |
tree | 0d519fd89e55c37e224b0d11d16c0735abb2766b | |
parent | 11ed0a95bfa76791dc6428eb2d47a986c0c6f8a3 (diff) |
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
-rw-r--r-- | share/man/man8/rc.subr.8 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/share/man/man8/rc.subr.8 b/share/man/man8/rc.subr.8 index 130962ecdcdf..f9c802679e00 100644 --- a/share/man/man8/rc.subr.8 +++ b/share/man/man8/rc.subr.8 @@ -29,7 +29,7 @@ .\" .\" $FreeBSD$ .\" -.Dd March 18, 2022 +.Dd August 16, 2022 .Dt RC.SUBR 8 .Os .Sh NAME @@ -685,6 +685,9 @@ This is a generic version of .Va ${name}_fib , or .Va ${name}_nice . +.It Va ${name}_setup +Command to be run prior to +.Va command . .It Ar argument Ns Va _cmd Shell commands which override the default method for .Ar argument . |