[Q] Best location of ntpd driftfile ?

2004-03-21 Thread Stefan A. Deutscher

Hi all,

  setting up ntpd, I find that its default location for the drift file
is /etc/ntp.drift.

In a way it is part of the configuration an may well belong in /etc, on
the other hand I'd rather just have files in /etc which _I_ modify.

I would expect the content of ntpd.drift to vary over time, and somehow
I would have expected it to belong in the /var part of the hierarchy,
but 'man hier' does not offer any serious evidence (should it be
/var/db/ntp.dift)?

So, what's the canonical way to place this file? (And no, I do _not_
want to know at this time whether anal-retentive is spelt with or
without a hyphen. I will post that question in a separate thread as need
arises :-)


Cheers,
   Stefan

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [Q] Best location of ntpd driftfile ?

2004-03-21 Thread Charles Swiger
On Mar 21, 2004, at 1:30 PM, Stefan A. Deutscher wrote:
  setting up ntpd, I find that its default location for the drift file
is /etc/ntp.drift.
Right, and that is probably the best location, too.

In a way it is part of the configuration an may well belong in /etc, on
the other hand I'd rather just have files in /etc which _I_ modify.
At one point (15 years ago :-), some people used to modify the contents 
of ntp.drift by hand.

This was for machines which were not connected to a network; by keeping 
track of the system time drift against an external time reference 
source over the course of a few weeks, one could compute the right 
value for ntp.drift and then run ntpd to correct that drift.

I would expect the content of ntpd.drift to vary over time,
ntp.drift normally converges and stabilizes after a while (a few days 
to a few weeks), unless the hardware clock is bad.

and somehow I would have expected it to belong in the /var part of the 
hierarchy, but 'man hier' does not offer any serious evidence (should 
it be
/var/db/ntp.dift)?
Hmm.  Well, ntpd predates the notion of /var, but you could put the 
drift file under there if you wanted to.  I think keeping DNS zone 
files under /var/named makes a lot more sense than under /etc/named, 
for instance, but I wouldn't move ntp.drift out of /etc myself.

--
-Chuck
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [Q] Best location of ntpd driftfile ?

2004-03-21 Thread Wayne Sierke
On Mon, 2004-03-22 at 04:04, Charles Swiger wrote:
 On Mar 21, 2004, at 1:30 PM, Stefan A. Deutscher wrote:
setting up ntpd, I find that its default location for the drift file
  is /etc/ntp.drift.
 
 Right, and that is probably the best location, too.
 
Looks like it's been moved to /var/db/ntpd.drift in FreeBSD-5




___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [Q] Best location of ntpd driftfile ?

2004-03-21 Thread Charles Swiger
On Mar 21, 2004, at 12:54 PM, Wayne Sierke wrote:
[ ...with regard to where ntp.drift should be... ]
Looks like it's been moved to /var/db/ntpd.drift in FreeBSD-5
Well, that's reasonable, too.

Now that I'm thinking about this, in particular, moving files which 
change regularly out of /etc into /var helps one mount root (/) 
read-only, which is sometimes desirable for embedded appliances and the 
like which boot off of limited-write media like compact-flash...

--
-Chuck
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]