Il 13/11/18 18:24, Achim Gratz ha scritto:
The handling of ntpd apparently switched from an old-style rc script to a systemd unit. Since then the stop script will take somewhere between ten seconds to a minute to declare success and continue with the shutdown. I don't see why it should take that long to shut down since ntpd really just closes the ntp logs and exits. The systemd unit file treats it as a forking daemon, which probably makes the check of whether the daemon has exited more involved. But ntpd can easily be told not to fork, so I think it should use the "-n" option in ExecStart and all the stuff that the current start script is doing should go into ExecStartPre?
Regards, Achim.
I was relying on ntpd service since ever until I read about "chronyd" as the substitute of ntpd adopted by new opensuse releases, then I switched to chronyd. Despite this it seems ntp package being still necessary (?) or could be removed by the system? To verify if my system is synchronized I use the command "timedatectl": marco@linux-turion64:~> timedatectl Local time: dom 2018-11-18 11:40:48 -02 Universal time: dom 2018-11-18 13:40:48 UTC RTC time: dom 2018-11-18 11:40:48 Time zone: America/Sao_Paulo (-02, -0200) System clock synchronized: yes NTP service: inactive RTC in local TZ: yes To get more details chronyd has its client commands available through "chronyc" marco@linux-turion64:~> sudo chronyc chrony version 3.4 Copyright (C) 1997-2003, 2007, 2009-2018 Richard P. Curnow and others chrony comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See the GNU General Public License version 2 for details. chronyc> tracking Reference ID : B03A5878 (lhr1.m-d.net) Stratum : 3 Ref time (UTC) : Sun Nov 18 13:41:00 2018 System time : 0.002480803 seconds fast of NTP time Last offset : +0.002829565 seconds RMS offset : 0.006423603 seconds Frequency : 9.606 ppm slow Residual freq : -21.809 ppm Skew : 0.606 ppm Root delay : 0.221706599 seconds Root dispersion : 0.040505521 seconds Update interval : 64.5 seconds Leap status : Normal chronyc> activity 200 OK 4 sources online 0 sources offline 0 sources doing burst (return to online) 0 sources doing burst (return to offline) 0 sources with unknown address chronyc> sources 210 Number of sources = 4 MS Name/IP address Stratum Poll Reach LastRx Last sample =============================================================================== ^+ speglar.simnet.is 2 6 377 2 +2930us[+2930us] +/- 132ms ^* lhr1.m-d.net 2 6 377 2 -1424us[-1726us] +/- 131ms ^+ ns5.asda.gr 2 6 377 2 +39us[ -263us] +/- 152ms ^- ntp2.torix.ca 1 6 377 2 -1161us[-1161us] +/- 583ms chronyc> But I don't know if ntpd "being better" than chronyd or not... Cheers, -- Marco Calistri Build: openSUSE Tumbleweed 20181116 Kernel: 4.19.1-1-default - Cinnamon 3.8.9