ps -C named -o start,lstart is the time since the process was started.

One can also force BIND to “reset” with a SIGHUP without actually stopping and 
starting the daemon.

This will cause (among many other things) the pid file to be reset. (You can 
also find a “general: notice: running” about this time in the logs that should 
pretty closely align with the last reset time, or startup time if there is 
none.).

The “reset” probably explains the difference between the two times that you see.

The stats counters are since startup time and not affected by a reset as far as 
I am aware.

Regards,

Mathew Eis
Northern Arizona University
Information Technology Services

From: bind-users <bind-users-boun...@lists.isc.org> on behalf of Jonathan Reed 
<jreed...@gmail.com>
Date: Thursday, January 5, 2017 at 1:54 PM
To: bind-users <bind-users@lists.isc.org>
Subject: real BIND start time

Hi,

I'm running rndc stats and trying to determine how long the stats are good for. 
I'm querying the server start time by a couple methods but they're not the 
same. Which one should I rely on?

$ date -r /var/run/named/named.pid
Sun Jan  1 03:38:04 EST 2017
$ ps -C named -o lstart=
Sat Dec 24 12:03:47 2016

I'm using the version bind-9.8.2-0.23.rc1.el6_5.1.x86_64 package on CentOS.

Thanks
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to