Skip to contentSkip to conversation

ntpd-systemd: ntpd is started with -g parameter

PATCH In review Radek Dostal 1 participant 2 messages May 24, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ntpd-systemd: ntpd is started with -g parameter

needed for correct functionality in systems without battery backed RTC

---
 meta-oe/recipes-support/ntp/files/ntpd.service |    2 +-
 meta-oe/recipes-support/ntp/ntp_4.2.6p3.bb     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-support/ntp/files/ntpd.service +1 -1
index bd87b1e..0102ef0 100644
@@ -5,7 +5,7 @@ After=network.target
 [Service]
 Type=forking
 PIDFile=/run/ntpd.pid
-ExecStart=/usr/bin/ntpd -p /run/ntpd.pid
+ExecStart=/usr/bin/ntpd -g -p /run/ntpd.pid
 
 [Install]
 WantedBy=multi-user.target
meta-oe/recipes-support/ntp/ntp_4.2.6p3.bb +1 -1
index ece8720..91d93c1 100644
@@ -1,6 +1,6 @@
 require ntp.inc
 
-PR = "r5"
+PR = "r6"
 
 inherit systemd
 
Signature · 1 line
1.7.5.4
#1 lore raw

Please ignore this patch, now I understand how ntp works togehter with ntpdate.

Thanks,
Radek

Quoted 36 lines · Radek Dostal

needed for correct functionality in systems without battery backed RTC

---
 meta-oe/recipes-support/ntp/files/ntpd.service |    2 +- meta-oe/recipes-support/ntp/ntp_4.2.6p3.bb     |    2 +-

 2 files changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-support/ntp/files/ntpd.service +0 -0
index bd87b1e..0102ef0 100644
@@ -5,7 +5,7 @@ After=network.target

 [Service]
 Type=forking
 PIDFile=/run/ntpd.pid

meta-oe/recipes-support/ntp/files/ntpd.service +1 -1
-ExecStart=/usr/bin/ntpd -p /run/ntpd.pid
+ExecStart=/usr/bin/ntpd -g -p /run/ntpd.pid

 [Install]
 WantedBy=multi-user.target

meta-oe/recipes-support/ntp/ntp_4.2.6p3.bb +0 -0
index ece8720..91d93c1 100644
@@ -1,6 +1,6 @@

 require ntp.inc

meta-oe/recipes-support/ntp/ntp_4.2.6p3.bb +1 -1
-PR = "r5"
+PR = "r6"

 inherit systemd

--
1.7.5.4