----- Original Message -----
From: "Nicolas Pitre" <[EMAIL PROTECTED]>
To: "Russell King - ARM Linux Admin" <[EMAIL PROTECTED]>
Cc: "Jim Fischer" <[EMAIL PROTECTED]>; "ARM Linux"
<[EMAIL PROTECTED]>
Sent: Friday, October 13, 2000 6:34 AM
Subject: Re: Embedded linux: syncronizing system time w/o onboard HW clock


> 'rdate -s' is also pretty handy and simple.  You only need to enable the
> "time" service in /etc/inetd.conf on the reference host.

Thanks for the info. FWIW, I'm currently using RH7 on some of my Linux
hosts, and it appears that 'xinetd' (the "new and improved" inetd) provides
the RFC 868 "Time" serivce in the RH7 environment. Unfortunately, the time
service doesn't seem to work. The xinetd start-up logs show the time service
is indeed started, but when the client machines try to use it -- e.g., when
they issue the 'rdate -p <host>' command, where '<host>' is the DNS name of
the RH7 box running the time server -- the client machines emit the error
message "rdate: got EOF from time server". For anyone who's interested,
here's the contents of the '/etc/xinetd.d/time' file on the RH7 host that's
providing the time service:


# /etc/xinetd.d/time
#
# default: TCP-on, UDP-off
# description: The time server provides site-independent, machine
# readable date and time information IAW RFC 848.
#
# former inet.d settings:
#
#time stream tcp nowait root internal
#time dgram  udp wait   root internal
#

service time
{
    disable = no
    id = time-stream
    type = INTERNAL
    socket_type = stream
    wait = no
    user = root
    log_type = FILE /var/log/xinitd
    log_on_success = HOST USERID EXIT
    log_on_failure = HOST USERID ATTEMPT RECORD
}

service time
{
    disable = yes
    id = time-dgram
    type = INTERNAL
    socket_type = dgram
    wait = no

    user = root
    log_type = FILE /var/log/xinitd
    log_on_success = HOST USERID EXIT
    log_on_failure = HOST USERID ATTEMPT RECORD
}


Jim Fischer
CPE/MSEE Grad Student
Cal Poly, SLO




_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm

Reply via email to