On Sun, Nov 29, 2009 at 6:46 AM, Michael Rasmussen <[email protected]> wrote: > On Sat, Nov 28, 2009 at 10:04:50PM -0800, Denis Heidtmann wrote: >> On Sat, Nov 28, 2009 at 9:03 PM, wes <[email protected]> wrote: >> >> >> >> So the question in its most general form is how to run ntpdate -bu >> >> pool.ntp.org without my intervention. If my attempts at this are >> >> close, what does it take to get ntpdate-debian to run during boot? >> >> Some of the docs seem to indicate that should be a default condition >> >> of ubuntu Jaunty. >> > >> > I don't run it at boot, but I do run it on a schedule. on production boxes, >> > I go once an hour. everything else can go once a day or 12 hours or >> > whenever >> > you want really. >> > >> > I do this by adding the command to invoke ntpdate to root's crontab. >> > >> Thanks. I may resort to something like that, but there are a couple >> of problems. First is that my machine is almost never on at midnight. >> The second is that the time servers try to avoid being hit "on the >> hour" by everybody. I would have to find out how to set the time it >> is run offset by some arbitrary number of minutes. >> >> Since my machine is off as much as it is on, time updating at boot is >> a good choice. That way there is no chance that some random program >> will encounter a file with a future time. > > You could set this up with anacron - which is installed by default on Ubuntu > systems. > > In addition to the normally scheduled jobs you could run anacron at boot with > the -n and -s > options. > > > -- > Michael Rasmussen, Portland Oregon
Thanks, Michael. This looks interesting. However, I find the man page difficult, to put it gently. How do I get anacron to run at boot? That seems to be the central question of this whole exercise: How do I get anything to run at boot? If I know how to run anacron at boot, why do I need it? Why can't I just run ntpdate-debian at the appropriate time during boot? Is anacron running by default? I sense that this question is so fundamental and so basic that nobody here believes that I am actually asking it. Nobody could be that much of a noob. -Denis _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
