Patchwork ntpd-systemd: ntpd is started with -g parameter

login
register
mail settings
Submitter Radek Dostal
Date May 24, 2012, 4:05 p.m.
Message ID <1337875543-28325-1-git-send-email-rd@radekdostal.com>
Download mbox | patch
Permalink /patch/28635/
State Not Applicable
Headers show

Comments

Radek Dostal - May 24, 2012, 4:05 p.m.
needed for correct functionality in systems without battery backed RTC

Signed-off-by: Radek Dostal <rd@radekdostal.com>
---
 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(-)
Radek Dostal - May 24, 2012, 5:58 p.m.
Please ignore this patch, now I understand how ntp works togehter with ntpdate.

Thanks,
Radek

On Thu, May 24, 2012 at 6:05 PM, Radek Dostal <rd@radekdostal.com> wrote:
> needed for correct functionality in systems without battery backed RTC
>
> Signed-off-by: Radek Dostal <rd@radekdostal.com>
> ---
>  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(-)
>
> diff --git a/meta-oe/recipes-support/ntp/files/ntpd.service b/meta-oe/recipes-support/ntp/files/ntpd.service
> index bd87b1e..0102ef0 100644
> --- a/meta-oe/recipes-support/ntp/files/ntpd.service
> +++ b/meta-oe/recipes-support/ntp/files/ntpd.service
> @@ -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
> diff --git a/meta-oe/recipes-support/ntp/ntp_4.2.6p3.bb b/meta-oe/recipes-support/ntp/ntp_4.2.6p3.bb
> index ece8720..91d93c1 100644
> --- a/meta-oe/recipes-support/ntp/ntp_4.2.6p3.bb
> +++ b/meta-oe/recipes-support/ntp/ntp_4.2.6p3.bb
> @@ -1,6 +1,6 @@
>  require ntp.inc
>
> -PR = "r5"
> +PR = "r6"
>
>  inherit systemd
>
> --
> 1.7.5.4
>

Patch

diff --git a/meta-oe/recipes-support/ntp/files/ntpd.service b/meta-oe/recipes-support/ntp/files/ntpd.service
index bd87b1e..0102ef0 100644
--- a/meta-oe/recipes-support/ntp/files/ntpd.service
+++ b/meta-oe/recipes-support/ntp/files/ntpd.service
@@ -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
diff --git a/meta-oe/recipes-support/ntp/ntp_4.2.6p3.bb b/meta-oe/recipes-support/ntp/ntp_4.2.6p3.bb
index ece8720..91d93c1 100644
--- a/meta-oe/recipes-support/ntp/ntp_4.2.6p3.bb
+++ b/meta-oe/recipes-support/ntp/ntp_4.2.6p3.bb
@@ -1,6 +1,6 @@ 
 require ntp.inc
 
-PR = "r5"
+PR = "r6"
 
 inherit systemd