I pointed out how rc.d(8) uses login.conf(5) via `daemon_class', so I linked
to https://man.openbsd.org/rc.d.8#daemon_class expecting it to be marked up.

Add .Tg to make above link and ":t daemon_class" in `man rc.d' work.

Mark up all `daemon_*' variables as single .Va so they get an automatic tag.
This also reads better and does not remove information, imho, as the text
right after the list explains everything.
(daemon_flags in rc.d/foo script vs. foo_flags in rc.conf.local)

Feedback? OK?

Index: rc.d.8
===================================================================
RCS file: /cvs/src/share/man/man8/rc.d.8,v
retrieving revision 1.40
diff -u -p -r1.40 rc.d.8
--- rc.d.8      2 Sep 2022 22:11:57 -0000       1.40
+++ rc.d.8      6 Mar 2023 13:21:41 -0000
@@ -104,27 +104,27 @@ variables when starting a daemon.
 The following can be overridden by site-specific values provided in
 .Xr rc.conf.local 8 :
 .Bl -tag -width daemon_timeout -offset indent
-.It Ar daemon Ns _execdir
+.It Va daemon_execdir
 Run daemon from the specified directory.
-.It Ar daemon Ns _flags
+.It Va daemon_flags
 Additional arguments to call the daemon with.
 These will be appended to any mandatory arguments already contained in the
 .Va daemon
 variable defined in the control script.
 If
-.Ar daemon Ns _flags
+.Va daemon_flags
 is set to
 .Dq NO ,
 it will prevent the daemon from starting even when listed in
 .Va pkg_scripts .
-.It Ar daemon Ns _logger
+.It Va daemon_logger
 Redirect standard output and error to
 .Xr logger 1
 using the configured priority (e.g. "daemon.info").
-.It Ar daemon Ns _rtable
+.It Va daemon_rtable
 Routing table to run the daemon under, using
 .Xr route 8 .
-.It Ar daemon Ns _timeout
+.It Va daemon_timeout
 Maximum time in seconds to wait for the
 .Cm start ,
 .Cm stop
@@ -137,7 +137,7 @@ This is only guaranteed with the default
 and
 .Ic rc_reload
 functions.
-.It Ar daemon Ns _user
+.It Va daemon_user
 User to run the daemon as, using
 .Xr su 1 .
 .El
@@ -159,6 +159,7 @@ flags), define the following in
 Each script may define its own defaults, as explained in
 .Xr rc.subr 8 .
 .Pp
+.Tg daemon_class
 .Va daemon_class
 is a special read-only variable.
 It is set to

Reply via email to