I've got a problem with ntp daemon on my router. After installing openntpd package and restarting the daemon doesn't seem to start at all. The symptoms are:
- there is no process called ntpd or similar
root@scorpio2:~# ps | grep ntp
5967 root 1348 S grep ntp
- the port 123 is not on the netstat list (and I suppose it should?)
root@scorpio2:~# netstat -a
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:80 *:* LISTEN
tcp 0 0 *:53 *:* LISTEN
tcp 0 0 *:22 *:* LISTEN
tcp 0 52 192.168.2.1:22 192.168.1.100:50755 ESTABLISHED
udp 0 0 *:53 *:*
udp 0 0 *:67 *:*
udp 0 0 *:tftp *:*
udp 0 0 192.168.3.2:25826 *:*
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 6 [ ] DGRAM 351 /dev/log
unix 2 [ ] DGRAM 1253
unix 2 [ ] DGRAM 1097
unix 2 [ ] DGRAM 531
unix 2 [ ] DGRAM 358
- system log doesn’t have any entry from ntpd
root@scorpio2:~# dmesg | grep ntp
root@scorpio2:~#
- ntp client on the other router can’t connect to my ntp daemon because of “connection refused”
I’m sure that the init script is enabled, but I also tried to start ntpd manually and the response was:
root@scorpio2:~# /usr/sbin/ntpd -s
fatal: stat: No such file or directory
dispatch_imsg in main: pipe closed
Terminating
My /etc/ntpd.conf file looks as follows:
# use a random selection of 8 public stratum 2 servers
# see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers
server 0.openwrt.pool.ntp.org
server 1.openwrt.pool.ntp.org
server 2.openwrt.pool.ntp.org
server 3.openwrt.pool.ntp.org
listen on 192.168.3.2
listen on 192.168.4.2
As you can see I added only two lines with listening interfaces, but even without them the situation remians the same.
What is going on?