ntpd sync fails on boot
Mike -- EMAIL IGNORED
m_d_berger_1900 at yahoo.com
Sat Jan 10 15:40:09 UTC 2009
On Sat, 10 Jan 2009 15:28:40 +1030, Tim wrote:
> On Fri, 2009-01-09 at 18:43 +0000, Mike -- EMAIL IGNORED wrote:
>> On my FC7 system, on boot up:
>> ntpd: Synchronizing with time server:
>> always fails. However, after the boot, if I log on and restart ntpd,
>> the sync always succeeds.
>
> I also always had that problem on my Fedora 7 installations. NTPD would
> try to start before the network was up (or fully up) and never recover.
> I ran a script that would start up NTPD quite late in the boot process.
>
[...]
Here is my workaround, which works:
#!/bin/sh
#
# 01/10/09
#
# chkconfig: 3 99 1
# description: restarts ntpd
#
# Source function library.
case $1 in
start)
/etc/init.d/ntpd restart
sleep 5
;;
stop)
;;
restart)
;;
condrestart)
;;
reload)
;;
status)
;;
*)
echo "Usage: $DAEMON {start|stop|restart|condrestart|reload|status}"
exit 1
esac
exit 0
More information about the fedora-list
mailing list