On 2022/05/27 11:43, Raf Czlonka wrote:
> Hello,
> 
> daemon_logger was the odd one out in rc.subr(8).

I think that is correct.

> While there, I did the same in rc.d(8).

But that isn't, it is talking about <daemonname>_execdir,
<daemonname>_flags, etc where you need to replace the <daemonname>


> Regards,
> 
> Raf
> 
> Index: share/man/man8/rc.d.8
> ===================================================================
> RCS file: /cvs/src/share/man/man8/rc.d.8,v
> retrieving revision 1.38
> diff -u -p -r1.38 rc.d.8
> --- share/man/man8/rc.d.8     26 May 2022 11:27:03 -0000      1.38
> +++ share/man/man8/rc.d.8     27 May 2022 10:35:12 -0000
> @@ -102,27 +102,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
> @@ -135,7 +135,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
> Index: share/man/man8/rc.subr.8
> ===================================================================
> RCS file: /cvs/src/share/man/man8/rc.subr.8,v
> retrieving revision 1.44
> diff -u -p -r1.44 rc.subr.8
> --- share/man/man8/rc.subr.8  26 May 2022 11:27:03 -0000      1.44
> +++ share/man/man8/rc.subr.8  27 May 2022 10:35:12 -0000
> @@ -262,7 +262,7 @@ Change to this directory before running
>  .Ic rc_exec .
>  .It Va daemon_flags
>  Arguments to call the daemon with.
> -.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").
> 

Reply via email to