set_rtc_mmss can't update vmware ...

どうやら、システムクロックとハードウェアクロックのずれすぎが原因のようです。
http://cucumber.g.hatena.ne.jp/tomisima/20080425/1209096832


同じように、シェル書いてcrontabに設定しました。

#!/bin/sh

/usr/sbin/ntpdate -s [ntpサーバurl1] \
[ntpサーバurl2] \
[ntpサーバurl3]

/sbin/hwclock --systohc


crontabは初めから以下のように設定されているので、/etc/cron.dailyにとりあえずシェルを入れといた。

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly


意味は↓(run-partsというコマンドは、引数に指定したディレクトリ内のスクリプトを全て実行する)

ディレクト 実行間隔
/etc/cron.hourly 1時間に1回
/etc/cron.daily 1日に1回
/etc/cron.weekly 1週間に1回
/etc/cron.monthly 1ヶ月に1回