Note: Due to technical difficulties, the Archives are currently not up to date.
GMANE provides an alternative service for most mailing lists. c.f. bug 424647
List Archive: gentoo-dev
Paul de Vrieze wrote:
>>Is there a neat way to just run ntpdate at system initialisation? I
> This is allready included in the ntp scripts. Just edit the configuration
> file. Btw. ntpd is not a necesarilly server. It takes care that the time
> stays correct. Check the ntpd.conf file for restricting the server
> capabilities.
>
Thanks for the advice. This still isn't really what I was after. I want
a really lightweight way of making sure that my machines are in
reasonable sync, but I'm not really worried about it enough to want to
have another daemon process hanging around looking after the time.
What I've done is write a 2 line bash script for /etc/init.d/ which just
runs ntpdate once using the ntpdate configurations in /etc/conf.d/ntpd,
which should be sufficient (Copied below for the terminally lazy ;) )
As an aside: Does anyone know what will happen the next time the package
containing /etc/init.d/* is updated? Will it remove my script or is that
protected?
Cheers,
Andy
#!/bin/bash
# A script to one off launch ntpdate
if [ $1 == 'start' ]; then
source /etc/conf.d/ntpd;
$NTPDATE_CMD $NTPDATE_OPTS;
fi
--
gentoo-dev@g.o mailing list
|
|