ブログ - MacOS Xでコマンドで日時を合わせる その2
MacOS Xで,NTPDが動いているのに,正しく時間があわない場合.以下の様にntp.confを編集して,サービスを再起動してみる.
iburstを付けるのがミソ.
サービスを再起動してみる.
これで暫く様子見で. これはPowerBook G4 667MHzにインストールしたMacOS X 10.4 Tigerでの事.そろそろCMOSの電池が無いので狂いまくってるのかな.
ivory:root# cat /etc/ntp.conf
#server ntp.nict.jp
server time.apple.com iburst
ivory:root#
ivory:root# ntpd -f /var/run/ntp.drift -p /var/run/ntpd.pid -c /etc/ntp.conf
ivory:root#
ivory:root# sudo SystemStarter -d restart "Network Time"
SystemStarter[13235]: Found item: Apache
〜略〜
SystemStarter[13235]: Found item: NetworkTime
〜略〜
SystemStarter[13235]: Running command (13236): /System/Library/Sta
rtupItems/NetworkTime/NetworkTime restart
Stopping network time synchronization
Starting network time synchronization
Looking for host time.apple.com and service ntp
host found : time.apple.com
SystemStarter[13235]: Finished network time synchronization (13236)
SystemStarter[13235]: none left
ivory:root#