wasimm wrote:
Thanx David.
I dont have any existing 'ntpd' related file under /var/run when
I run the 'ntpd'.
# ls -al
total 92
drwxr-xr-x 2 root 0 512 Jul 11 00:34 .
drwxr-xr-x 6 root 0 512 Jul 11 00:08 ..
-rw-r--r-- 1 root 0 40960 Jul 11 00:34 dev.db
-rw-r--r-- 1 root 0 4 Jul 11 00:34 inetd.pid
srw-rw-rw- 1 root 0 0 Jul 11 00:34 log
-rw------- 1 root 0 0 Jul 11 00:34 loggd.lock
-rw-r--r-- 1 root 0 4 Jul 11 00:34 mountd.pid
-rw-r--r-- 1 root 0 4 Jul 11 00:34 rpcbind.pid
srwxrwxrwx 1 root 0 0 Jul 11 00:34 rpcbind.sock
-rw-r--r-- 1 root 0 4 Jul 11 00:34 syslog.pid
-rwxrwxrwx 1 root 0 0 Jul 11 00:34 utmp
What platform?
What version of NetBSD?
On i386 with NetBSD since 1.5x I would expect to see those
entries in group wheel, ie.
-rw-r--r-- 1 root wheel 4 Jun 19 19:09 inetd.pid
what are the ntpd files in /usr/sbin? I have:
ntp-keygen
ntpd
ntpdate
ntpdc
ntpq
ntptime
ntptrace
sntp
Those are all from the base system but it's easy enough to compile
a more recent version either in /usr/pkg/(s)bin or /usr/local/bin.
On the oldest system I have in use I have 4.2.0-r in /usr/sbin and
4.2.6p2 in /usr/local/bin.
Note that just copying binaries from a different NetBSD version
might not work.
David
--wasim
--- On Mon, 7/11/11, David Lord <[email protected]> wrote:
From: David Lord <[email protected]>
Subject: Re: [ntp:questions] 2nd try: error: sendto(x.x.x.x): Bad file
descriptor ?
To: [email protected]
Date: Monday, July 11, 2011, 2:15 AM
wasimm wrote:
Hi,
Help, please.
When I try to start 'ntpd' on a netbsd system, I get
'sendto(32.33.33.1): Bad file descriptor' error message
and the ntpd daemon does not start.
A search on the internet tells that this kind of error
message is seen if there is an existing ntpd daemon is
running and the
use is starting another daemon. But I did not have any
daemon running prior to my execution of the ntpd command.
I have the following entry in my /etc/ntp.conf
server 32.33.33.1
restrict 127.0.0.1
The command I used is:
# ./ntpd -c /etc/ntp.conf
# Jul 9 07:18:28 Ericsson ntpd[981]:
sendto(32.33.33.1): Bad file descriptor
Here is the debug log of the 'ntpd' I tried to run.
Debug log of ntpd
-----------------
Jul 9 07:18:27 ntpd[981]: ntpd 4.2.0-r Fri Jun
17 14:21:33 PDT 2011 (1)
Jul 9 07:18:27 ntpd[981]: precision = 1.000
usec
Jul 9 07:18:27 ntpd[981]: kernel time sync
status 0040
Jul 9 07:18:28 Ericsson ntpd[981]:
sendto(32.33.33.1): Bad file descriptor
I've never seen that error but sometimes my /var/run entry
for ntpd doesn't get deleted and ntpd refuses to run with
an error that ntpd is already running. In that case
removal
of the file in /var/run is all that's needed.
David
_______________________________________________
questions mailing list
[email protected]
http://lists.ntp.org/listinfo/questions
_______________________________________________
questions mailing list
[email protected]
http://lists.ntp.org/listinfo/questions