-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ntpd does not sync the time after boot (DNS problem?) #109
Comments
# cat /etc/motd Welcome to SATIP-AXE server 201801301900-15 # ntpd --help BusyBox v1.26.2 (2018-01-25 08:55:26 CET) multi-call binary. Usage: ntpd [-dnqNwl -I IFACE] [-S PROG] [-p PEER]... NTP client/server -d Verbose -n Do not daemonize -q Quit after clock is set -N Run at high priority -w Do not set time (only query peers), implies -n -S PROG Run PROG after stepping time, stratum change, and every 11 mins -p PEER Obtain time from PEER (may be repeated) If -p is not given, 'server HOST' lines from /etc/ntp.conf are used -l Also run as server on port 123 -I IFACE Bind server to IFACE, implies -l # ps ax | grep ntpd 722 root 0:00 {ntpd} /bin/sh /etc/init.d/ntpd 727 root 0:00 /usr/sbin/ntpd -n -I eth0 -p 192.168.100.1 947 root 0:00 grep ntpd No issue here.. |
Hi perexg,
After reboot, ntpd is running
However, date and time are wrong:
So I do
Check if there's no ntpd running:
And manually start ntpd:
Finally, the date and time are correct.
Maybe it's a problem with '-n' vs. '-N' or '-I' (implies '-l' ?). I don't know, it only works without these options. cheers, |
Is sufficient to kill ntpd after start? It might be a network boot timing issue. |
Now I'm flabbergasted. I thought I'd tried just killing it. That's why I started to play with the options. Notwithstanding the above, I suggest to change
in /etc/init.d/ntpd to
and add the options to the config. cheers, |
The '-n' is mandatory - otherwise the /etc/init.d/ntpd script will be in an endless loop. The '-I eth0' is harmless. Could you run 'strace -p <ntpd_pid>' when things does not work? |
|
It seems that your /etc/sysconfig/resolv.conf (or /etc/resolv.conf) is wrong. It points to 127.0.0.1 (localhost) at the boot time. Do you use DHCP? But there's |
I'm using a static IP setup:
Here's my resolv.conf: |
Ok, so the question is where ntpd gets the 127.0.0.1 address for the DNS resolution. |
/etc/resolv.conf is a link to /mnt/data/satip-axe/sysconfig/resolv.conf. |
Could you try to add 'killall -9 ntpd' to /etc/sysconfig/localboot ? (Make this script as executable). |
Ok I did
and added the line 'killall -9 ntpd' PS: If I call the script manually, ntpd as well as the "watchdog script" gets killed, so ntpd is not automatically restarted after 'localboot' has been executed. PPS: Do I have to enable this:
and rename the script accordingly? |
The first line for the executable script should be '#!/bin/sh' . But I think that ntpd is not started at this point yet. The /etc/init.d/rcS script which mounts the config partition is executed before spawned tasks. CUSTOMD is another way to run own code. In my environment, the date is wrong after boot, but it's quickly set to the real date (static IP config). I don't know why ntpd in your environment is using only 127.0.0.1 DNS address. |
I've added '#!/bin/sh' to the script just to be sure but after a reboot the problem remains. Just in case, here's my dmesg after boot:
|
same problem here |
I have the same problem. After restart of device the time/date is somewhere in 2015. I always have to use the command "date MMDDHHMMYY" in putty to get the correct date and time. As far as I have seen ntpd does not work on startup because the difference to hardware clock and/or system clock is to big. hwclock --systohc did not work. Can you please explain I think problems with ntpd will have gone after that, but I don´t know how.. |
There is no RTC hardware, so hwclock won't work. Also, there are no time zones in the firmware to keep things simple. The initial date is set in /etc/init.d/rcS script: date 010112002015 If 'ping 0.pool.ntp.org' works (the /etc/sysconfig/resolv.conf exists and is linked to /etc/resolv.conf), then ntpd should set the correct date. (You may change the NTP server in the config file.) # ping 0.pool.ntp.org PING 0.pool.ntp.org (78.46.37.9): 56 data bytes 64 bytes from 78.46.37.9: seq=0 ttl=42 time=51.204 ms |
Ping is ok will wait - maybe there is a solution in next release your firmware is great btw. Thanks a lot for it ! |
just some more feedback |
I'm using 201802211835-15, dhcp, usb-boot (not flashed yet). |
i was experiencing time to time unresponsive hw from one of my digibit's... so i think a good solution was to run a reboot on specific hour each days... when i tried to do this i also noticed that ntpd was also not working for me... tried with and without dhcp and it seens it also using 127.0.0.1 for dns in my case! Thanks |
I have the same issue with my Digibit R1: ntpd is running, but time is incorrect. fw: 201705251043-14 Is there any solution yet? Thanks! |
fw: 201705251043-14 |
after changing NTPD_OPTS to the ip Adress of my router (giving time to lan) so time differs for 2 h now What do I have to do to get correct local time ? |
Copy the file from your linux distribution. It's zoneinfo file not a text file. Example: $ scp /usr/share/zoneinfo/Europe/Prague root@satip1:/etc/sysconfig/localtime $ ssh root@satip1 # cd /etc # ln -s sysconfig/localtime |
YES ! Took the "Berlin" file from CoreELEC, rename and restart. |
@gitoriu @perexg |
It seems that /etc/init.d/dhcpc-event needs some more love to restart ntpd properly when the DNS parameters changes. |
I will add my hugs while testing... ;-) |
This comment has been minimized.
This comment has been minimized.
still no luck @perexg ... see the outdated below comment... even with ntpd running i don0t get correct time... however if i kill it and run it again it set time correctly! |
Cannot confirm. Ntpd is killed correctly now with 201809171929-15 . Ntpd needs just some seconds to sync. I have correct time with the dhcp settings on my box. Anyway, it's generally bad idea to use DHCP for server IPs. |
Hi, it's still not working for me using 201809171929-15. |
@ecdlguy please test rc2: https://github.com/perexg/satip-axe/releases/tag/build15-rc2 |
for me the problem still exist... but like @perexg i am using dhcp! Welcome to SATIP-AXE server 201809211014-15 ~ # date |
strace, pls |
Anyway, ntpd should exists after boot.. It seems that you killed it from your own script? |
yes @perexg it exists after boot but time was not set!!! however if i kill it and start again it works! |
strace -p 969 Process 969 attached - interrupt to quit restart_syscall(<... resuming interrupted call ...>) = 0 socket(PF_NETLINK, SOCK_RAW, 0) = 4 bind(4, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0 getsockname(4, {sa_family=AF_NETLINK, pid=969, groups=00000000}, [12]) = 0 time(NULL) = 1420114273 sendto(4, "\24\0\0\0\26\0\1\3a9\245T\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20 recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"0\0\0\0\24\0\2\0a9\245T\311\3\0\0\2\30\200\376\1\0\0\0\10\0\1\0\177\0\0\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 108 recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0a9\245T\311\3\0\0\n\200\200\376\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 192 recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0a9\245T\311\3\0\0\0\0\0\0\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20 close(4) = 0 open("/etc/hosts", O_RDONLY|O_CLOEXEC) = 4 fstat64(4, {st_mode=S_IFREG|0755, st_size=82, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2975e000 read(4, "127.0.0.1\tlocalhost.localdomain\t"..., 4096) = 82 read(4, "", 4096) = 0 close(4) = 0 munmap(0x2975e000, 4096) = 0 gettimeofday({1420114273, 661891}, NULL) = 0 gettimeofday({1420114273, 662051}, NULL) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114273, 663128}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "\333\346\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "\376a\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114273, 666914}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "\333\346\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "\376a\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 gettimeofday({1420114273, 669280}, NULL) = 0 gettimeofday({1420114273, 669733}, NULL) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114273, 670370}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "^\271\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "\203\22\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114273, 673843}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "^\271\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "\203\22\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 write(2, "ntpd: bad address '0.pool.ntp.or"..., 35) = 35 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 nanosleep({5, 0}, 0x7bcf0a00) = 0 socket(PF_NETLINK, SOCK_RAW, 0) = 4 bind(4, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0 getsockname(4, {sa_family=AF_NETLINK, pid=969, groups=00000000}, [12]) = 0 time(NULL) = 1420114278 sendto(4, "\24\0\0\0\26\0\1\3f9\245T\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20 recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"0\0\0\0\24\0\2\0f9\245T\311\3\0\0\2\30\200\376\1\0\0\0\10\0\1\0\177\0\0\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 108 recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0f9\245T\311\3\0\0\n\200\200\376\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 192 recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0f9\245T\311\3\0\0\0\0\0\0\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20 close(4) = 0 open("/etc/hosts", O_RDONLY|O_CLOEXEC) = 4 fstat64(4, {st_mode=S_IFREG|0755, st_size=82, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2975e000 read(4, "127.0.0.1\tlocalhost.localdomain\t"..., 4096) = 82 read(4, "", 4096) = 0 close(4) = 0 munmap(0x2975e000, 4096) = 0 gettimeofday({1420114278, 688337}, NULL) = 0 gettimeofday({1420114278, 688494}, NULL) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114278, 689558}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "T\371\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "\302\340\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114278, 693126}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "T\371\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "\302\340\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 gettimeofday({1420114278, 695410}, NULL) = 0 gettimeofday({1420114278, 695924}, NULL) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114278, 696566}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "4\333\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "\250\323\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114278, 699992}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "4\333\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "\250\323\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 write(2, "ntpd: bad address '0.pool.ntp.or"..., 35) = 35 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 nanosleep({5, 0}, 0x7bcf0a00) = 0 socket(PF_NETLINK, SOCK_RAW, 0) = 4 bind(4, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0 getsockname(4, {sa_family=AF_NETLINK, pid=969, groups=00000000}, [12]) = 0 time(NULL) = 1420114283 sendto(4, "\24\0\0\0\26\0\1\3k9\245T\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20 recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"0\0\0\0\24\0\2\0k9\245T\311\3\0\0\2\30\200\376\1\0\0\0\10\0\1\0\177\0\0\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 108 recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0k9\245T\311\3\0\0\n\200\200\376\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 192 recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0k9\245T\311\3\0\0\0\0\0\0\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20 close(4) = 0 open("/etc/hosts", O_RDONLY|O_CLOEXEC) = 4 fstat64(4, {st_mode=S_IFREG|0755, st_size=82, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2975e000 read(4, "127.0.0.1\tlocalhost.localdomain\t"..., 4096) = 82 read(4, "", 4096) = 0 close(4) = 0 munmap(0x2975e000, 4096) = 0 gettimeofday({1420114283, 713416}, NULL) = 0 gettimeofday({1420114283, 713573}, NULL) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114283, 714571}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "p]\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "\325\345\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114283, 717631}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "p]\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "\325\345\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 gettimeofday({1420114283, 720373}, NULL) = 0 gettimeofday({1420114283, 720521}, NULL) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114283, 721551}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "\312|\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "S\22\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114283, 724607}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "\312|\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "S\22\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 write(2, "ntpd: bad address '0.pool.ntp.or"..., 35) = 35 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 nanosleep({5, 0}, 0x7bcf0a00) = 0 socket(PF_NETLINK, SOCK_RAW, 0) = 4 bind(4, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0 getsockname(4, {sa_family=AF_NETLINK, pid=969, groups=00000000}, [12]) = 0 time(NULL) = 1420114288 sendto(4, "\24\0\0\0\26\0\1\3p9\245T\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20 recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"0\0\0\0\24\0\2\0p9\245T\311\3\0\0\2\30\200\376\1\0\0\0\10\0\1\0\177\0\0\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 108 recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0p9\245T\311\3\0\0\n\200\200\376\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 192 recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0p9\245T\311\3\0\0\0\0\0\0\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20 close(4) = 0 open("/etc/hosts", O_RDONLY|O_CLOEXEC) = 4 fstat64(4, {st_mode=S_IFREG|0755, st_size=82, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2975e000 read(4, "127.0.0.1\tlocalhost.localdomain\t"..., 4096) = 82 read(4, "", 4096) = 0 close(4) = 0 munmap(0x2975e000, 4096) = 0 gettimeofday({1420114288, 737891}, NULL) = 0 gettimeofday({1420114288, 738331}, NULL) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114288, 738998}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "\266D\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "\321x\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114288, 741984}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "\266D\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "\321x\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 gettimeofday({1420114288, 744463}, NULL) = 0 gettimeofday({1420114288, 744608}, NULL) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114288, 745490}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "\340\244\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "\200\321\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114288, 748348}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "\340\244\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "\200\321\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 write(2, "ntpd: bad address '0.pool.ntp.or"..., 35) = 35 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 nanosleep({5, 0}, 0x7bcf0a00) = 0 socket(PF_NETLINK, SOCK_RAW, 0) = 4 bind(4, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0 getsockname(4, {sa_family=AF_NETLINK, pid=969, groups=00000000}, [12]) = 0 time(NULL) = 1420114293 sendto(4, "\24\0\0\0\26\0\1\3u9\245T\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20 recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"0\0\0\0\24\0\2\0u9\245T\311\3\0\0\2\30\200\376\1\0\0\0\10\0\1\0\177\0\0\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 108 recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0u9\245T\311\3\0\0\n\200\200\376\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 192 recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0u9\245T\311\3\0\0\0\0\0\0\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20 close(4) = 0 open("/etc/hosts", O_RDONLY|O_CLOEXEC) = 4 fstat64(4, {st_mode=S_IFREG|0755, st_size=82, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2975e000 read(4, "127.0.0.1\tlocalhost.localdomain\t"..., 4096) = 82 read(4, "", 4096) = 0 close(4) = 0 munmap(0x2975e000, 4096) = 0 gettimeofday({1420114293, 761835}, NULL) = 0 gettimeofday({1420114293, 761989}, NULL) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114293, 763024}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "k\274\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "\360\221\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114293, 766072}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "k\274\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "\360\221\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 gettimeofday({1420114293, 768453}, NULL) = 0 gettimeofday({1420114293, 768607}, NULL) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114293, 769258}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "\265^\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "\24.\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114293, 771572}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "\265^\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "\24.\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 write(2, "ntpd: bad address '0.pool.ntp.or"..., 35) = 35 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 nanosleep({5, 0}, 0x7bcf0a00) = 0 socket(PF_NETLINK, SOCK_RAW, 0) = 4 bind(4, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0 getsockname(4, {sa_family=AF_NETLINK, pid=969, groups=00000000}, [12]) = 0 time(NULL) = 1420114298 sendto(4, "\24\0\0\0\26\0\1\3z9\245T\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20 recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"0\0\0\0\24\0\2\0z9\245T\311\3\0\0\2\30\200\376\1\0\0\0\10\0\1\0\177\0\0\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 108 recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0z9\245T\311\3\0\0\n\200\200\376\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 192 recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0z9\245T\311\3\0\0\0\0\0\0\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20 close(4) = 0 open("/etc/hosts", O_RDONLY|O_CLOEXEC) = 4 fstat64(4, {st_mode=S_IFREG|0755, st_size=82, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2975e000 read(4, "127.0.0.1\tlocalhost.localdomain\t"..., 4096) = 82 read(4, "", 4096) = 0 close(4) = 0 munmap(0x2975e000, 4096) = 0 gettimeofday({1420114298, 781467}, NULL) = 0 gettimeofday({1420114298, 781624}, NULL) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114298, 782272}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "\257\304\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "\347[\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114298, 784648}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "\257\304\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "\347[\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 gettimeofday({1420114298, 786288}, NULL) = 0 gettimeofday({1420114298, 786462}, NULL) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114298, 787075}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "W\341\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "u[\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114298, 789164}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "W\341\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "u[\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 write(2, "ntpd: bad address '0.pool.ntp.or"..., 35) = 35 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 nanosleep({5, 0}, 0x7bcf0a00) = 0 socket(PF_NETLINK, SOCK_RAW, 0) = 4 bind(4, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0 getsockname(4, {sa_family=AF_NETLINK, pid=969, groups=00000000}, [12]) = 0 time(NULL) = 1420114303 sendto(4, "\24\0\0\0\26\0\1\3\1779\245T\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20 recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"0\0\0\0\24\0\2\0\1779\245T\311\3\0\0\2\30\200\376\1\0\0\0\10\0\1\0\177\0\0\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 108 recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0\1779\245T\311\3\0\0\n\200\200\376\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 192 recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0\1779\245T\311\3\0\0\0\0\0\0\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20 close(4) = 0 open("/etc/hosts", O_RDONLY|O_CLOEXEC) = 4 fstat64(4, {st_mode=S_IFREG|0755, st_size=82, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2975e000 read(4, "127.0.0.1\tlocalhost.localdomain\t"..., 4096) = 82 read(4, "", 4096) = 0 close(4) = 0 munmap(0x2975e000, 4096) = 0 gettimeofday({1420114303, 798570}, NULL) = 0 gettimeofday({1420114303, 798762}, NULL) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114303, 799415}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "\337\253\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "\t\373\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114303, 801704}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "\337\253\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "\t\373\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 gettimeofday({1420114303, 803343}, NULL) = 0 gettimeofday({1420114303, 803486}, NULL) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114303, 804125}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "\0308\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "\266u\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114303, 806207}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "\0308\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "\266u\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 write(2, "ntpd: bad address '0.pool.ntp.or"..., 35) = 35 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 nanosleep({5, 0}, 0x7bcf0a00) = 0 socket(PF_NETLINK, SOCK_RAW, 0) = 4 bind(4, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0 getsockname(4, {sa_family=AF_NETLINK, pid=969, groups=00000000}, [12]) = 0 time(NULL) = 1420114308 sendto(4, "\24\0\0\0\26\0\1\3\2049\245T\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20 recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"0\0\0\0\24\0\2\0\2049\245T\311\3\0\0\2\30\200\376\1\0\0\0\10\0\1\0\177\0\0\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 108 recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0\2049\245T\311\3\0\0\n\200\200\376\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 192 recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0\2049\245T\311\3\0\0\0\0\0\0\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20 close(4) = 0 open("/etc/hosts", O_RDONLY|O_CLOEXEC) = 4 fstat64(4, {st_mode=S_IFREG|0755, st_size=82, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2975e000 read(4, "127.0.0.1\tlocalhost.localdomain\t"..., 4096) = 82 read(4, "", 4096) = 0 close(4) = 0 munmap(0x2975e000, 4096) = 0 gettimeofday({1420114313, 134817}, NULL) = 0 gettimeofday({1420114313, 134972}, NULL) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114313, 135951}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "W\375\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "\223\203\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114313, 139570}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "W\375\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "\223\203\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 gettimeofday({1420114313, 141909}, NULL) = 0 gettimeofday({1420114313, 142360}, NULL) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114313, 143008}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "\350&\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "\0\314\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114313, 145910}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "\350&\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "\0\314\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 write(2, "ntpd: bad address '0.pool.ntp.or"..., 35) = 35 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 nanosleep({5, 0}, 0x7bcf0a00) = 0 socket(PF_NETLINK, SOCK_RAW, 0) = 4 bind(4, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0 getsockname(4, {sa_family=AF_NETLINK, pid=969, groups=00000000}, [12]) = 0 time(NULL) = 1420114318 sendto(4, "\24\0\0\0\26\0\1\3\2169\245T\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20 recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"0\0\0\0\24\0\2\0\2169\245T\311\3\0\0\2\30\200\376\1\0\0\0\10\0\1\0\177\0\0\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 108 recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0\2169\245T\311\3\0\0\n\200\200\376\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 192 recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0\2169\245T\311\3\0\0\0\0\0\0\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20 close(4) = 0 open("/etc/hosts", O_RDONLY|O_CLOEXEC) = 4 fstat64(4, {st_mode=S_IFREG|0755, st_size=82, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2975e000 read(4, "127.0.0.1\tlocalhost.localdomain\t"..., 4096) = 82 read(4, "", 4096) = 0 close(4) = 0 munmap(0x2975e000, 4096) = 0 gettimeofday({1420114318, 159766}, NULL) = 0 gettimeofday({1420114318, 159920}, NULL) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114318, 160993}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "\26\312\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "\306\310\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114318, 164894}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "\26\312\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "\306\310\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 gettimeofday({1420114318, 167632}, NULL) = 0 gettimeofday({1420114318, 167780}, NULL) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114318, 168778}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "\226\311\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "\372\312\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 gettimeofday({1420114318, 171842}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) send(4, "\226\311\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32 poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}]) send(4, "\372\312\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused) close(4) = 0 write(2, "ntpd: bad address '0.pool.ntp.or"..., 35) = 35 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 nanosleep({5, 0}, |
This is the config i am using now! i changed from dhcp to static! IPV4 config#IPV4="dhcp" orIPV4="192.168.1.114" ntpdNTPD_OPTS="-p 0.pool.ntp.org" is it normal that with static there's no resolv.conf? |
You must write your own resolv.conf and place it to /etc/sysconfig. I don't know at this point, what task is accepting connections on TCP port 53: connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 on my box: # netstat -an | grep 53 # weird... what's your 'netstat -an' ? |
/ # netstat -an | grep 53 meanwhile i will create resolve.conf and put it there! |
with dhcp off... and resolv.conf created it works! |
Is it really "resolve.conf" with an 'e' ? I have resolv.conf in /etc/sysconfig with the following content: My IP ist static:
However, it doesn't work for me at the moment. cheers, PS @perexg I've seen you answer in the other thread #108 and the new release, I'm going to test this evening, I'm very excited! |
put resolv.conf file to /etc/sysconfig/resolv.conf my bad sorry! |
Ok and what's the content of this file? |
nameserver 192.168.1.254 |
Ok thank you, just wanted to check if "search" and "domain" entries are mandatory. |
Yes! Using the latest release 15 RC 2 it works! |
@perexg: I just tried release 15 RC4 with dhcp activated and it still does not work for me. Only after killing ntpd and restarting it manually the time is set correctly. I am a bit confused by the earlier comments. Is it supposed to work now also with dhcp activated? |
From my side I changed to fixed ip |
I see. Still imho it can't be a final solution to disable dhcp. |
Guys, you may check the /etc/init.d/dhcpc-event script: https://github.com/perexg/satip-axe/blob/master/fs-add/etc/init.d/dhcpc-event#L49-L51 , the ntpd should be killed when /etc/resolv.conf and ip configuration changes. I did some tests and it works in my network. If you have an idea what's wrong with this script, update it and rewrite it using the /etc/sysconfig/localboot script during the boot to check if your changes are working in your network. Example of the /etc/sysconfig/localboot (copy the modified dhcpc-event to /etc/sysconfig directory): #!/bin/sh cp /etc/sysconfig/dhcpc-event /etc/init.d/dhcpc-event |
If I was able to script I would be happy to contribute. Fact is I am not, so besides testing I will not be of much help. |
Hi,
ntpd is running, however the arguments ('-n', '-I') seem to be outdated for this version of ntpd so ntpd does nothing. I've touched /tmp/nontpd in order to prevent /etc/init.d/ntpd to respawn it.
After that, starting ntpd with the '-p' option only like
ntpd -p 0.pool.ntp.org
immediately sets the correct time.
cheers,
Thorsten
The text was updated successfully, but these errors were encountered: