Control: reopen -1
Control: retitle -1 systemd: systemd-timesyncd should not run, when chronyd is 
running


On Fri, 22 Jun 2018 23:46:57 +0200 Francesco Poli wrote:

[...]
> I'll try to keep an eye on the two daemons, to find out which one is
> running and whether something unexpected happens.

Well, something weird is indeed happening.

At each reboot, both daemons (chrony and systemd-timesyncd) are running
simultaneously!
Please take a look at the attached transcripts.


I have to manually stop systemd-timesyncd with

  # service systemd-timesyncd stop

after each boot.
I am again pondering whether I should mask systemd-timesyncd with

  # systemctl --now mask systemd-timesyncd

I hope this won't be needed...


-- 
 http://www.inventati.org/frx/
 There's not a second to spare! To the laboratory!
..................................................... Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE
$ uptime
 08:56:24 up 16:29,  1 user,  load average: 0.19, 0.30, 0.18
$ systemctl status systemd-timesyncd.service
● systemd-timesyncd.service - Network Time Synchronization
   Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; 
vendor preset: enabled)
   Active: active (running) since Thu 2018-07-19 16:26:51 CEST; 16h ago
     Docs: man:systemd-timesyncd.service(8)
 Main PID: 685 (systemd-timesyn)
   Status: "Synchronized to time server XXX.XXX.XXX.XXX."
    Tasks: 2 (limit: 4915)
   Memory: 2.5M
   CGroup: /system.slice/systemd-timesyncd.service
           └─685 /lib/systemd/systemd-timesyncd

Jul 19 16:26:51 HOST systemd[1]: Starting Network Time Synchronization...
Jul 19 16:26:51 HOST systemd[1]: Started Network Time Synchronization.
Jul 19 16:27:21 HOST systemd-timesyncd[685]: Synchronized to time server 
XXX.XXX.XXX.XXX
$ systemctl status chronyd.service
● chrony.service - chrony, an NTP client/server
   Loaded: loaded (/lib/systemd/system/chrony.service; enabled; vendor preset: 
enabled)
   Active: active (running) since Thu 2018-07-19 16:26:51 CEST; 16h ago
     Docs: man:chronyd(8)
           man:chronyc(1)
           man:chrony.conf(5)
 Main PID: 813 (chronyd)
    Tasks: 1 (limit: 4915)
   Memory: 3.0M
   CGroup: /system.slice/chrony.service
           └─813 /usr/sbin/chronyd

Jul 19 16:26:51 HOST systemd[1]: Starting chrony, an NTP client/server...
Jul 19 16:26:51 HOST chronyd[813]: chronyd version 3.3 starting (+CMDMON +NTP 
+REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +SECHASH +IPV6 -DEBUG)
Jul 19 16:26:51 HOST chronyd[813]: Frequency -1.782 +/- 0.287 ppm read from 
/var/lib/chrony/chrony.drift
Jul 19 16:26:51 HOST systemd[1]: Started chrony, an NTP client/server.
Jul 19 16:27:00 HOST chronyd[813]: Selected source XXX.XXX.XXX.XXX
$ uptime
 09:25:40 up 2 min,  4 users,  load average: 0.68, 0.31, 0.12
$ systemctl status systemd-timesyncd.service
● systemd-timesyncd.service - Network Time Synchronization
   Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; 
vendor preset: enabled)
   Active: active (running) since Mon 2018-07-23 09:23:02 CEST; 2min 47s ago
     Docs: man:systemd-timesyncd.service(8)
 Main PID: 658 (systemd-timesyn)
   Status: "Synchronized to time server XXX.XXX.XXX.XXX."
    Tasks: 2 (limit: 4915)
   Memory: 2.5M
   CGroup: /system.slice/systemd-timesyncd.service
           └─658 /lib/systemd/systemd-timesyncd

Jul 23 09:23:01 HOST systemd[1]: Starting Network Time Synchronization...
Jul 23 09:23:02 HOST systemd[1]: Started Network Time Synchronization.
Jul 23 09:23:32 HOST systemd-timesyncd[658]: Synchronized to time server 
XXX.XXX.XXX.XXX.
$ systemctl status chronyd.service
● chrony.service - chrony, an NTP client/server
   Loaded: loaded (/lib/systemd/system/chrony.service; enabled; vendor preset: 
enabled)
   Active: active (running) since Mon 2018-07-23 09:23:02 CEST; 2min 53s ago
     Docs: man:chronyd(8)
           man:chronyc(1)
           man:chrony.conf(5)
  Process: 965 ExecStartPost=/usr/lib/chrony/chrony-helper update-daemon 
(code=exited, status=0/SUCCESS)
  Process: 906 ExecStart=/usr/sbin/chronyd $DAEMON_OPTS (code=exited, 
status=0/SUCCESS)
 Main PID: 956 (chronyd)
    Tasks: 1 (limit: 4915)
   Memory: 2.7M
   CGroup: /system.slice/chrony.service
           └─956 /usr/sbin/chronyd

Jul 23 09:23:02 HOST systemd[1]: Starting chrony, an NTP client/server...
Jul 23 09:23:02 HOST chronyd[956]: chronyd version 3.3 starting (+CMDMON +NTP 
+REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +SECHASH +IPV6 -DEBUG)
Jul 23 09:23:02 HOST chronyd[956]: Frequency -2.374 +/- 0.084 ppm read from 
/var/lib/chrony/chrony.drift
Jul 23 09:23:02 HOST systemd[1]: Started chrony, an NTP client/server.
Jul 23 09:23:09 HOST chronyd[956]: Selected source XXX.XXX.XXX.XXX

Attachment: pgpre57vpiaS5.pgp
Description: PGP signature

_______________________________________________
Pkg-systemd-maintainers mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-systemd-maintainers

Reply via email to