[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: ntpd sync fails on boot



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]