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. Thanks in advance! D. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20080515/63985a6f/attachment-0005.html>
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.ok ... I do not see exactly where, but it seems that somewhere a -x switch is set and the file /etc/ntp/step-tickers gets the server name to sync from. I do no see a -x switch anywhere though -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 252 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20080515/0b95ec82/attachment-0005.sig>
>> 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. > > ok ... I do not see exactly where, but it seems that somewhere a -x switch is > set and the file /etc/ntp/step-tickers gets the server name to sync from. > > I do no see a -x switch anywhere thoughthe -x switch is part of the init script. it isn't actually handled by ntpd. the init script will use step-tickers if it has entries, or pull the server lines from ntp.conf, and then invoke ntpdate with the list it figures out.
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.