From 3dbff9fc6d0a2fddec109d0956e1341cb8cc4947 Mon Sep 17 00:00:00 2001 From: Thomas Roos Date: Fri, 6 Dec 2024 20:03:46 +0100 Subject: [PATCH] feat: greengrass.service.template: add After=systemd-time-wait-sync.service This will allow if systemd-time-wait-sync.service is enabled to wait for a synced clock. If this is not enabled it will not wait. Especially in systems without a RTC (like RPi) it will take some time after boot till NTP will sync clock and if Greengrass is already started this time jump will cause issues. --- scripts/greengrass.service.template | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/greengrass.service.template b/scripts/greengrass.service.template index b239d6e133..3df494182f 100644 --- a/scripts/greengrass.service.template +++ b/scripts/greengrass.service.template @@ -1,6 +1,7 @@ [Unit] Description=Greengrass Core After=network.target +After=systemd-time-wait-sync.service [Service] Type=simple