From 27915edf67af3717741036b97e1434dd24bf98c4 Mon Sep 17 00:00:00 2001 From: Jan Luebbe Date: Sun, 19 Jul 2015 21:27:13 +0200 Subject: [PATCH] ntp: enable automatic restart NTPd sometimes fails to start on the first try, but works fine when restarted. Signed-off-by: Jan Luebbe --- recipes-bsp/ntp/files/ntpd.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes-bsp/ntp/files/ntpd.service b/recipes-bsp/ntp/files/ntpd.service index 0e3d7cd..df8044e 100644 --- a/recipes-bsp/ntp/files/ntpd.service +++ b/recipes-bsp/ntp/files/ntpd.service @@ -6,6 +6,8 @@ After=network.target Type=forking PIDFile=/run/ntpd.pid ExecStart=/usr/sbin/ntpd -u ntp:ntp -p /run/ntpd.pid -g +Restart=always +RestartSec=2 [Install] WantedBy=multi-user.target