All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/chrony: switch chrony.service to Type=notify
@ 2026-09-04 13:42 TIAN Yuanhao
  2026-10-03 18:40 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: TIAN Yuanhao @ 2026-09-04 13:42 UTC (permalink / raw)
  To: buildroot
  Cc: TIAN Yuanhao, Bernd Kuhls, Fabrice Fontaine, Scott Fan,
	Yann E. MORIN

Since 4.7, chronyd implements the systemd notify protocol natively
(upstream commit cb11184, "main: add support for systemd
notification"): it sends READY=1 to $NOTIFY_SOCKET once fully
initialised and ready to accept commands.

Type=simple cannot observe that signal. systemd marks the unit active
as soon as the process starts, before chronyd is ready, and gpsd may
follow immediately: its drop-in br-chrony.conf orders it only with
After=chrony.service.

Switch to Type=notify so the ordering holds. chronyd's -n mode
(don't detach) suits Type=notify, and no libsystemd dependency
is added.

Cc: Bernd Kuhls <bernd@kuhls.net>
Cc: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Cc: Scott Fan <fancp2007@gmail.com>
Cc: Yann E. MORIN <yann.morin@orange.com>
Signed-off-by: TIAN Yuanhao <tianyuanhao3@163.com>
---
 package/chrony/chrony.service | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/chrony/chrony.service b/package/chrony/chrony.service
index 210122cf5d..2d619dd6da 100644
--- a/package/chrony/chrony.service
+++ b/package/chrony/chrony.service
@@ -8,6 +8,7 @@ Conflicts=systemd-timesyncd.service
 # correct time to work, but we likely won't acquire that without NTP. Let's
 # break this chicken-and-egg cycle here.
 Environment=SYSTEMD_NSS_RESOLVE_VALIDATE=0
+Type=notify
 ExecStart=/usr/sbin/chronyd -n
 Restart=always
 
-- 
2.54.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-10-03 18:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-04 13:42 [Buildroot] [PATCH 1/1] package/chrony: switch chrony.service to Type=notify TIAN Yuanhao
2026-10-03 18:40 ` Thomas Petazzoni via buildroot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.