From: David Presotto <presotto@closedmind.org>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] cron and timesync
Date: Thu, 17 Jul 2003 16:57:39 -0400 [thread overview]
Message-ID: <6c37aa960563b3fd6c70cfa2788d1339@plan9.bell-labs.com> (raw)
In-Reply-To: <fe08afabb4b67ac2e23de776d0268256@collyer.net>
[-- Attachment #1: Type: text/plain, Size: 451 bytes --]
I changed timesync to not background until it's tried at least once
to sync up. That means you'll be within 10 seconds of real time
when it returns if it managed to find a time source; timesync just
sets the time if off by more than 10 seconds and tries to sneak
up on the correct time otherwise.
I could wait for time to get within the accuracy limit, but that
could take a while. 10 seconds should be good enough for the
reported problem.
[-- Attachment #2: Type: message/rfc822, Size: 2121 bytes --]
From: Geoff Collyer <geoff@collyer.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] cron and timesync
Date: Thu, 17 Jul 2003 13:21:34 -0700
Message-ID: <fe08afabb4b67ac2e23de776d0268256@collyer.net>
I invoke this function early in cpurc:
fn timesync {
aux/timesync -nl -d /sys/log/timesync.d -a 100000 $*
# the alpha port currently has no #r
if (test -e '#r/rtc') @ {
sleep 600 # let ntp do its thing
awk '{print $1}' /dev/time >'#r/rtc' # fix the hardware clock
} &
}
I don't start cron until I've started venti and fossil, and that takes
long enough that timesync should have reset /dev/time by then.
prev parent reply other threads:[~2003-07-17 20:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-17 18:53 andrey mirtchovski
2003-07-17 19:26 ` rog
2003-07-17 19:47 ` Dan Cross
2003-07-17 20:21 ` Geoff Collyer
2003-07-17 20:57 ` David Presotto [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6c37aa960563b3fd6c70cfa2788d1339@plan9.bell-labs.com \
--to=presotto@closedmind.org \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).