Re: ntpd date sync before service startup

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



I am sorry, but when i will config ntp trought system-config-date and check sync time before service startup, it is working, but i do not see any -x switch in /etc/sysconfig/ntp . :(
 
Thanks

On Fri, May 16, 2008 at 12:55 AM, John R Pierce <pierce@xxxxxxxxxxxx> wrote:
David Hláčik wrote:
Hello,
in system-config-date i have checkbox synchronize date before service startup.
Which config switch,file does it affect? I want to turn it on on my CentOS machine without xauth , just editing config files , i was hoping it could be in /etc/sysconfig/ntpd but no.


most likely, the system-config util is setting that option in /etc/sysconfig/ntpd which by default reads...

# Drop root to id 'ntp:ntp' by default.
OPTIONS="-u ntp:ntp -p /var/run/ntpd.pid"

# Set to 'yes' to sync hw clock after successful ntpdate
SYNC_HWCLOCK=no

# Additional options for ntpdate
NTPDATE_OPTIONS=""

if -x is /not/ set in OPTIONS, it calls /usr/sbin/ntpdate with various parameters, this hard sets the system time to the NTP server time. if -x /is/ set, it does the time step thing

if SYNC_HWCLOCK=yes, then it invokes sync_hwclock in the /etc/init.d/ntpd script, which in turn runs /sbin/hwclock with various options as specified.



_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux