git: 73d1f732cea1 - stable/13 - rc.subr: improve description for ${name}_offcmd

From: Eugene Grosbein <eugen_at_FreeBSD.org>
Date: Fri, 21 Jun 2024 08:30:11 UTC
The branch stable/13 has been updated by eugen:

URL: https://cgit.FreeBSD.org/src/commit/?id=73d1f732cea18de474b58783b562b11a28f1dd99

commit 73d1f732cea18de474b58783b562b11a28f1dd99
Author:     Eugene Grosbein <eugen@FreeBSD.org>
AuthorDate: 2024-06-18 09:11:56 +0000
Commit:     Eugene Grosbein <eugen@FreeBSD.org>
CommitDate: 2024-06-21 08:29:53 +0000

    rc.subr: improve description for ${name}_offcmd
    
    Clarify that ${name}_offcmd is for method start.
    
    (cherry picked from commit af1b0aa5b957bbfedc929167aa3459ad2d8b6653)
---
 libexec/rc/rc.subr       | 3 ++-
 share/man/man8/rc.subr.8 | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/libexec/rc/rc.subr b/libexec/rc/rc.subr
index 8ae0744939d0..f1eeb81a5d39 100644
--- a/libexec/rc/rc.subr
+++ b/libexec/rc/rc.subr
@@ -811,7 +811,8 @@ startmsg()
 #
 #	${name}_limits	n	limits(1) to apply to ${command}.
 #
-#	${name}_offcmd	n	If set, run if a service is not enabled.
+#	${name}_offcmd	n	If set, run during start
+#				if a service is not enabled.
 #
 #	${rc_arg}_cmd	n	If set, use this as the method when invoked;
 #				Otherwise, use default command (see below)
diff --git a/share/man/man8/rc.subr.8 b/share/man/man8/rc.subr.8
index b9713eb65a3c..9126cc5e8ac6 100644
--- a/share/man/man8/rc.subr.8
+++ b/share/man/man8/rc.subr.8
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd June 2, 2024
+.Dd June 18, 2024
 .Dt RC.SUBR 8
 .Os
 .Sh NAME
@@ -632,7 +632,7 @@ Login class to use with
 Defaults to
 .Dq Li daemon .
 .It Va ${name}_offcmd
-Shell commands to run if a service is not enabled.
+Shell commands to run during start if a service is not enabled.
 .It Va ${name}_oomprotect
 .Xr protect 1
 .Va command