Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

According to the recommendation on Arch Wiki, I set my hardware clock to UTC. And here is the result of timedatectl status on my machine when just booted:

      Local time: Tue 2013-07-02 15:38:03 CST
  Universal time: Tue 2013-07-02 07:38:03 UTC
        Timezone: Asia/Shanghai (CST, +0800)
     NTP enabled: yes
NTP synchronized: no
 RTC in local TZ: no
      DST active: n/a

At this moment, the time display on panel is UTC, only after a while(about 10 minutes), the NTP synchronized will eventually change to yes, then I have CST on the panel. So how can I force the NTP sync as soon as booting?

share|improve this question
    
Might be helpful: wiki.archlinux.org/index.php/… –  slm Jul 2 '13 at 8:29
    
@slm, it doesn't work, I tried to manually start the daemon after booting, nothing happened, it seems I still have to wait. –  Elderry Jul 2 '13 at 8:48
add comment

1 Answer

Add iburst to the server line in ntp.conf. Your ntp.conf will have one or more lines that look like:

server tick.example.com
server tock.example.com

Add iburst to the end of each line. After the change they should looke like:

server tick.example.com iburst
server tock.example.com iburst

then reset ntp

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.