[pkg-ntp-maintainers] Bug#889290: ntp and systemd-timesyncd run in parallel
Fejes József
jozsef.fejes at gmail.com
Sat Feb 3 11:37:05 UTC 2018
Package: ntp
Version: 1:4.2.8p10+dfsg-6
I have a very default Buster installation, I've never messed with systemd
settings. Then I installed ntp. I noticed in ntp's systemd config that it
conflicts with systemd-timesyncd which makes perfect sense, these two
should never run together.
However, I noticed that these two guys run in parallel, which is wrong. I
pasted below what I see after a reboot. I will try disabling
systemd-timesyncd but I still wonder, this is broken by default, and why
does systemd even have this service built in?
root at hp:~# ps aux | grep "time\|ntp"
systemd+ 1483 0.1 0.0 143268 5568 ? Ssl 12:29 0:00
/lib/systemd/systemd-timesyncd
ntp 1693 0.0 0.0 102544 2940 ? Ssl 12:29 0:00
/usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 107:113
root 2650 0.0 0.0 12888 848 pts/0 S+ 12:30 0:00 grep
time\|ntp
root at hp:~# systemctl status ntp
● ntp.service - Network Time Service
Loaded: loaded (/lib/systemd/system/ntp.service; enabled; vendor preset:
enabled)
Active: active (running) since Sat 2018-02-03 12:29:37 CET; 46s ago
Docs: man:ntpd(8)
Process: 1622 ExecStart=/usr/lib/ntp/ntp-systemd-wrapper (code=exited,
status=0/SUCCESS)
Main PID: 1693 (ntpd)
Tasks: 2 (limit: 4915)
CGroup: /system.slice/ntp.service
└─1693 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 107:113
Feb 03 12:29:40 hp ntpd[1693]: error resolving pool 2.debian.pool.ntp.org:
Temporary failure in name resolution (-3)
Feb 03 12:29:41 hp ntpd[1693]: error resolving pool 3.debian.pool.ntp.org:
Temporary failure in name resolution (-3)
Feb 03 12:29:43 hp ntpd[1693]: bind(23) AF_INET6
2a02:aa12:a67f:b580:9af2:b3ff:fee8:7274#123 flags 0x11 failed: Cannot a
Feb 03 12:29:43 hp ntpd[1693]: unable to create socket on enp2s0f0 (4) for
2a02:aa12:a67f:b580:9af2:b3ff:fee8:7274#123
Feb 03 12:29:43 hp ntpd[1693]: failed to init interface for address
2a02:aa12:a67f:b580:9af2:b3ff:fee8:7274
Feb 03 12:29:43 hp ntpd[1693]: Listen normally on 5 enp2s0f0
[fe80::9af2:b3ff:fee8:7274%2]:123
Feb 03 12:29:44 hp ntpd[1693]: new interface(s) found: waking up resolver
Feb 03 12:29:46 hp ntpd[1693]: Listen normally on 6 enp2s0f0
192.168.0.220:123
Feb 03 12:29:46 hp ntpd[1693]: Listen normally on 7 enp2s0f0
[2a02:aa12:a67f:b580:9af2:b3ff:fee8:7274]:123
Feb 03 12:29:47 hp ntpd[1693]: new interface(s) found: waking up resolver
root at hp:~# systemctl status systemd-timesyncd
● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled;
vendor preset: enabled)
Active: active (running) since Sat 2018-02-03 12:29:37 CET; 54s ago
Docs: man:systemd-timesyncd.service(8)
Main PID: 1483 (systemd-timesyn)
Status: "Synchronized to time server [2001:8e0:ffff:ac1::1]:123 (
2.debian.pool.ntp.org)."
Tasks: 2 (limit: 4915)
CGroup: /system.slice/systemd-timesyncd.service
└─1483 /lib/systemd/systemd-timesyncd
Feb 03 12:29:37 hp systemd[1]: Starting Network Time Synchronization...
Feb 03 12:29:37 hp systemd[1]: Started Network Time Synchronization.
Feb 03 12:30:08 hp systemd-timesyncd[1483]: Synchronized to time server
[2001:8e0:ffff:ac1::1]:123 (2.debian.pool.ntp.or
More information about the pkg-ntp-maintainers
mailing list