воскресенье, 21 октября 2012 г.

NTP server every day ^_^

Since i have tired to see my ubuntu clocks asynced, i have decided to put following code snippet to /etc/rc.local file:

for SERVER in ntp1 ntp2 ntp3 ntp4 ntp21; do
        echo "Trying ${SERVER}.vniiftri.ru to connect"
        if ntpdate ${SERVER}.vniiftri.ru; then
                break
        fi
done


Vniiftri is Russian center of time control.
I assume that there is nothing bad in connecting to ntp*.vniiftri.ru every moment my laptop starts.

Комментариев нет:

Отправить комментарий