Hi,

I want to use ntpdate to set the system time and date during the boot
sequence of a system with a ADSL connection which takes almost 10
seconds to be brought up.

[EMAIL PROTECTED] # ls -1 /etc/rc2.d/
[...]
S19bind@
S20diald@
S20inetd@
S20ipchains@
S20logoutd@
S20makedev@
S20masqmail@
S20net-acct@
S20samba@
S20ssh-nonfree@
S20ssh2@
S30pppoed@
S30squid@
S32ntpdate@
[...]
[EMAIL PROTECTED] # cat /etc/init.d/ntpdate 
[...]
case "$1" in
start)
    [...]
    ### The -d (debug) option is just set until it works.
    /usr/sbin/ntpdate -d -b -t 11 194.95.250.36 131.188.34.75 \
        130.149.17.21 &> /tmp/ntp.log
    echo "."
    ;;
[...]    
        
But:
[EMAIL PROTECTED] # cat /tmp/ntp.log
[...]
16 May 08:14:50 ntpdate[607]: no server suitable for synchronization
found

[EMAIL PROTECTED] # cat /etc/diald/dynamic.filter
[...]
accept udp 60 udp.dest=udp.ntp
accept udp 60 udp.source=udp.ntp
accept udp 60 udp.dest=udp.timed
accept udp 60 udp.source=udp.timed
[...]

I don't want to put the ntpdate command into /etc/diald/ip-up since it
should be called only once during the boot sequence.

The ntpdate command does work perfectly when called from the command
line after bootup!

Any hints?

TIA

Stony

Reply via email to