On Tue, Sep 18, 2012 at 11:43:45PM +0200, Frank Brodbeck wrote:
> Hi,
> 
> ntpd(8) states that:
> 
>      When ntpd receives a SIGINFO signal, it writes its peer and sensor
>      status to syslog(3).
> 
> But it isn't clear which process should be signalled:
> 
> $ ps ax | grep ntpd  
>  9770 ??  Is      0:00.01 ntpd: [priv] (ntpd)
> 32294 ??  I       0:00.09 ntpd: ntp engine (ntpd)
> 28642 ??  I       0:00.01 ntpd: dns engine (ntpd)
> 
> Ok, it isn't hard to figure out that the right command should look like:
> 
> # pkill -INFO -f 'ntpd: ntp engine'
> 

henning just committed a fix to this page. we decided on a different
diff because although the example you give above works, it is simpler to
just do "pkill -INFO ntpd".

hope that is satisfactory,
jmc

> but I think the man page could be more specific about that:
> 
> Index: usr.sbin/ntpd/ntpd.8
> ===================================================================
> RCS file: /cvs/src/usr.sbin/ntpd/ntpd.8,v
> retrieving revision 1.32
> diff -u -r1.32 ntpd.8
> --- usr.sbin/ntpd/ntpd.8        30 Aug 2012 06:48:33 -0000      1.32
> +++ usr.sbin/ntpd/ntpd.8        18 Sep 2012 21:40:04 -0000
> @@ -117,11 +117,13 @@
>  .Pa /var/db/ntpd.drift .
>  Clock drift is periodically written to the drift file thereafter.
>  .Pp
> -When
> -.Nm
> -receives a
> +When the
> +.Em ntp engine
> +child process receives a
>  .Dv SIGINFO
> -signal, it writes its peer and sensor status to
> +signal, 
> +.Nm
> +writes its peer and sensor status to
>  .Xr syslog 3 .
>  .Sh FILES
>  .Bl -tag -width "/var/db/ntpd.driftXXX" -compact
> 
> -- 
> Frank Brodbeck <[email protected]>

Reply via email to