Re: ntpd sync fails on boot

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

 



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

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux