From 8d7a4ff0ea35c541b78244f4ea976de1d87ae127 Mon Sep 17 00:00:00 2001 From: Taoyu Li Date: Wed, 1 Nov 2017 02:21:57 +0000 Subject: [PATCH 1/2] Restart ntp after ntp-config --- files/image_config/ntp/ntp-config.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/image_config/ntp/ntp-config.sh b/files/image_config/ntp/ntp-config.sh index 7c79a16c0ef3..601b7bd421f0 100755 --- a/files/image_config/ntp/ntp-config.sh +++ b/files/image_config/ntp/ntp-config.sh @@ -1,3 +1,5 @@ #!/bin/bash sonic-cfggen -d -t /usr/share/sonic/templates/ntp.conf.j2 >/etc/ntp.conf + +systemctl restart ntp From 01c94f7befef496046db14ebd732aa06e9efa5e3 Mon Sep 17 00:00:00 2001 From: Taoyu Li Date: Fri, 3 Nov 2017 01:22:56 +0000 Subject: [PATCH 2/2] Remove ntp dependency to ntp-config --- files/image_config/ntp/ntp-config.service | 1 - 1 file changed, 1 deletion(-) diff --git a/files/image_config/ntp/ntp-config.service b/files/image_config/ntp/ntp-config.service index 05e6211b9782..d41f1ba2ddca 100644 --- a/files/image_config/ntp/ntp-config.service +++ b/files/image_config/ntp/ntp-config.service @@ -1,6 +1,5 @@ [Unit] Description=Update NTP configuration -Before=ntp.service Requires=database.service After=database.service