Talk:OpenNTPD
From Gentoo Wiki
Note
Before creating a discussion or leaving a comment, please read about using talk pages. To create a new discussion, click here. Comments on an existing discussion should be signed using
Before creating a discussion or leaving a comment, please read about using talk pages. To create a new discussion, click here. Comments on an existing discussion should be signed using
~~~~
:
A comment [[User:Larry|Larry]] 13:52, 13 May 2024 (UTC) : A reply [[User:Sally|Sally]] 23:54, 6 December 2024 (UTC) :: Your reply ~~~~
Navigate to first
systemd support?
Talk status
This discussion is done.
I am not sure if OpenNTPd is really working with systemd. Could anyone using systemd verify this if the section really fits in this article and not the ntp article? This would be great Needle (talk) 23:27, 14 May 2016 (UTC)
- Tried the client set up. OpenNTPd is installed and enabled on my gentoo box with systemd 226, but does not work:
myself@lapslave ~ $ eix ntpd
[I] net-misc/openntpd
Available versions: 5.7_p4-r2 ~5.9_p1 {libressl selinux}
Installed versions: 5.7_p4-r2(21:23:08 24.11.2015)(-selinux)
Homepage: http://www.openntpd.org/
Description: Lightweight NTP server ported from OpenBSD
myself@lapslave ~ $ sudo /etc/init.d/ntpd restart
* WARNING: ntpd is already starting
myself@lapslave ~ $ sudo /etc/init.d/ntpd stop
* ERROR: ntpd stopped by something else
- But the systemd-timesyncd mentioned at the end works well:
myself@lapslave ~ $ timedatectl
Local time: Mo 2016-05-16 11:44:58 CEST
Universal time: Mo 2016-05-16 09:44:58 UTC
RTC time: Mo 2016-05-16 09:44:58
Time zone: Europe/Berlin (CEST, +0200)
Network time on: no
NTP synchronized: no
RTC in local TZ: no
myself@lapslave ~ $ systemctl enable systemd-timesyncd
Created symlink from /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service to /usr/lib64/systemd/system/systemd-timesyncd.service.
myself@lapslave ~ $ systemctl start systemd-timesyncd
myself@lapslave ~ $ timedatectl
Local time: Mo 2016-05-16 11:45:33 CEST
Universal time: Mo 2016-05-16 09:45:33 UTC
RTC time: Mo 2016-05-16 09:45:40
Time zone: Europe/Berlin (CEST, +0200)
Network time on: yes
NTP synchronized: no
RTC in local TZ: no
myself@lapslave ~ $ systemctl status systemd-timesyncd
● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/usr/lib64/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)
Active: active (running) since Mo 2016-05-16 11:45:32 CEST; 31s ago
Docs: man:systemd-timesyncd.service(8)
Main PID: 3745 (systemd-timesyn)
Status: "Synchronized to time server 78.46.189.152:123 (0.gentoo.pool.ntp.org)."
Memory: 448.0K
CPU: 5ms
CGroup: /system.slice/systemd-timesyncd.service
└─3745 /usr/lib/systemd/systemd-timesyncd
Mai 16 11:45:32 lapslave systemd[1]: Starting Network Time Synchronization...
Mai 16 11:45:32 lapslave systemd[1]: Started Network Time Synchronization.
Mai 16 11:45:26 lapslave systemd-timesyncd[3745]: Synchronized to time server 78.46.189.152:123 (0.gentoo.pool.ntp.org).
- So I would say: no, OpenNTPd does not work with systemd (Knecht) Mo 2016-05-16 09:45:33 UTC
- Marking this discussion as done. --Maffblaster (talk) 05:58, 6 June 2016 (UTC)