"Сервер синхроницации времени XNTPD" - читать интересную книгу автора (Мошков Максим)

Њ ЄбЁ¬ Њ®иЄ®ў

‘ҐаўҐа бЁ­еа®­Ёж жЁЁ ўаҐ¬Ґ­Ё XNTPD

гбв ­®ўЄ  ўаҐ¬Ґ­Ё ўагз­го:

date 08281645 # MMDDhhmm
hwclock -w # Їа®ЇЁб вм ⥪г饥 ўаҐ¬п ў HW-clock

FILES
/etc/adjtime /usr/lib/zoneinfo/ /dev/rtcж¤


‚६Ґ­­ п §®­  § ЇЁб ­  ў
/etc/timezone
‘ЇЁб®Є ўаҐ¬Ґ­­ле §®­
/usr/share/zoneinfo

Љ®¬ЇЁ«пв®а ўаҐ¬Ґ­­ле §®­
zic

‘ҐаўҐа б® бў®Ё¬Ё з б ¬Ё
/etc/ntp.conf

server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10

driftfile /etc/ntp/drift
broadcastdelay 0.008

# Їа ў  ¤®бвгЇ : ўбҐ¬ - ­ЁзҐЈ®, localhost - ўбҐ, Є«ЁҐ­в ¬ - readonly
restrict default ignore
restrict 127.0.0.1
restrict 195.0.0.0 mask 255.255.255.0 notrust nomodify notrap

Љ«ЁҐ­в

1 ў аЁ ­в: ЎҐаҐ¬ ўаҐ¬п ­ҐбЄ®«мЄ® а § ў ¤Ґ­м, б § ЇгбЄ®¬ зҐаҐ§ crontab:

1 1/4 * * * ntpdate -b ntp.server1.name ntp.server2.name

2 ў аЁ ­в: ЎҐаҐ¬ ўаҐ¬п Ё§ Ўа®¤Є бв®ў

/etc/ntp.conf :

broadcast yes
driftfile /etc/ntp/drift


3 ў аЁ ­в: ЎҐаҐ¬ ўаҐ¬п б бҐаўҐа , зҐаҐ§ XNTPD