[Buildroot] [PATCH 1/1] package/chrony: switch chrony.service to Type=notify

TIAN Yuanhao tianyuanhao3 at 163.com
Fri Sep 4 13:42:08 UTC 2026


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 at kuhls.net>
Cc: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Cc: Scott Fan <fancp2007 at gmail.com>
Cc: Yann E. MORIN <yann.morin at orange.com>
Signed-off-by: TIAN Yuanhao <tianyuanhao3 at 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



More information about the buildroot mailing list