Re: Starting NTP server: ntpd/usr/sbin/ntpd: invalid option -- p
On Monday 16 June 2008 22:08, David Christensen wrote:
> Andrew Reid wrote:
> > I'm afraid I'm not much of an expert on openntp. My first guess is
> > that, as the system runs, the clock should sync up on its own, if
> > ntpd is seeing valid servers and working properly.
>
> If it were a 24x7 box, then yes. But, it's a virtual machine that I fire
> up, hack around, and then shut it down.
In that case, perhaps what you want is ntpdate, after all.
It works by putting a hook in /etc/network/if-up.d, so
that the time gets set automatically when the network
comes up.
You can set the server list in /etc/default/ntpdate.
Note that the Debianized ntpdate is a bit different
from the "upstream", in particular in that the Debianized
one is the one that's run by the if-up.d hook, and it
uses the /etc/default/ntpdate file to find servers, whereas
the "vanilla" one doesn't do either of these things.
-- A.
--
Andrew Reid / reidac@bellatlantic.net
Reply to: