ntpdate

Kevin Fenzi kevin at scrye.com
Fri Nov 19 19:41:42 UTC 2010


On Fri, 19 Nov 2010 19:18:53 +0000 (GMT)
Patrick Dupre <pd520 at york.ac.uk> wrote:

> Hello,
> With the last versions of fedora, if I am correct, it is recommanded
> to run NetworkManager and not anymore network.
> So during the boot I used to make a ntpdate on a server which
> is not anymore available because there is not network.
> Do you just recommand to not run ntpdate during the boot or there
> is other alternatives ?

Add a script to /etc/NetworkManager/dispatcher.d/ that calls ntpdate on
network connection. Something like: 

#!/bin/sh

if [ "$2" = "up" ]; then
        ntpdate -u addressofyourntpserver
fi

Then, every time NM connects to a network and it's UP, it will run
that. 

kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20101119/33db851d/attachment.bin 


More information about the users mailing list