А можно полную команду, как запустить ntpd?
так ?
root@wirenboard-AAZW2DHN:~# service ntp start
root@wirenboard-AAZW2DHN:~# ntpstat
unsynchronised
polling server every 8 s
root@wirenboard-AAZW2DHN:~# timedatectl
Local time: Fri 2023-04-14 13:18:08 MSK
Universal time: Fri 2023-04-14 10:18:08 UTC
RTC time: Fri 2023-04-14 10:18:08
Time zone: Europe/Moscow (MSK, +0300)
System clock synchronized: no
NTP service: n/a
RTC in local TZ: no
root@wirenboard-AAZW2DHN:~#
Вот еще
root@wirenboard-AAZW2DHN:~# systemctl | grep ntp
ntp.service loaded active running Network Time Service
root@wirenboard-AAZW2DHN:~# systemctl status ntp
â— ntp.service - Network Time Service
Loaded: loaded (/lib/systemd/system/ntp.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2023-04-14 09:19:39 MSK; 4h 26min ago
Docs: man:ntpd(8)
Main PID: 2437 (ntpd)
Tasks: 2 (limit: 1146)
Memory: 1.6M
CPU: 58.281s
CGroup: /system.slice/ntp.service
└─2437 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -c /run/ntp.conf.dhcp -u 101:103
Apr 14 09:19:37 wirenboard-AAZW2DHN ntpd[2437]: Listen normally on 5 eth1 [fe80::eaeb:1bff:fe33:f798%2]:123
Apr 14 09:19:37 wirenboard-AAZW2DHN ntpd[2437]: Listening on routing socket on fd #22 for interface updates
Apr 14 09:19:39 wirenboard-AAZW2DHN systemd[1]: Started Network Time Service.
Apr 14 09:19:46 wirenboard-AAZW2DHN ntpd[2437]: Listen normally on 6 wlan0 192.168.42.1:123
Apr 14 09:19:46 wirenboard-AAZW2DHN ntpd[2437]: bind(26) AF_INET6 fe80::2618:c6ff:fe77:cba4%5#123 flags 0x11 failed: Cannot assign >
Apr 14 09:19:46 wirenboard-AAZW2DHN ntpd[2437]: unable to create socket on wlan0 (7) for fe80::2618:c6ff:fe77:cba4%5#123
Apr 14 09:19:46 wirenboard-AAZW2DHN ntpd[2437]: failed to init interface for address fe80::2618:c6ff:fe77:cba4%5
Apr 14 09:19:46 wirenboard-AAZW2DHN ntpd[2437]: new interface(s) found: waking up resolver
Apr 14 09:19:48 wirenboard-AAZW2DHN ntpd[2437]: Listen normally on 8 wlan0 [fe80::2618:c6ff:fe77:cba4%5]:123
Apr 14 09:19:48 wirenboard-AAZW2DHN ntpd[2437]: new interface(s) found: waking up resolver
Запущен и не работает ?
root@wirenboard-AAZW2DHN:~# more /etc/ntp.conf
/etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help
driftfile /var/lib/ntp/ntp.drift
Leap seconds definition provided by tzdata
leapfile /usr/share/zoneinfo/leap-seconds.list
Enable this if you want statistics to be logged.
#statsdir /var/log/ntpstats/
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
You do need to talk to an NTP server or two (or three).
#server ntp.your-provider.example
pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will
pick a different set every time it starts up. Please consider joining the
pool 0.debian.pool.ntp.org iburst
pool 1.debian.pool.ntp.org iburst
pool 2.debian.pool.ntp.org iburst
pool 3.debian.pool.ntp.org iburst
Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for
might also be helpful.
Note that “restrict” applies to both servers and clients, so a configuration
that might be intended to block requests from certain clients could also end
up blocking replies from your own upstream servers.
By default, exchange time with everybody, but don’t allow configuration.
restrict -4 default kod notrap nomodify nopeer noquery limited
restrict -6 default kod notrap nomodify nopeer noquery limited
Local users may interrogate the ntp server more closely.
restrict 127.0.0.1
restrict ::1
Needed for adding pool entries
restrict source notrap nomodify noquery
Clients from this (example!) subnet have unlimited access, but only if
cryptographically authenticated.
#restrict 192.168.123.0 mask 255.255.255.0 notrust
If you want to provide time to your local subnet, change the next line.
(Again, the address is an example only.)
#broadcast 10.1.133.255
If you want to listen to time broadcasts on your local subnet, de-comment the
next lines. Please do this only if you trust everybody on the network!
#disable auth
#broadcastclient
root@wirenboard-AAZW2DHN:~#