[oe] [meta-systemd][PATCH] meta-systemd: ntp: Change version to what is used in meta-networking.

Martin Jansa martin.jansa at gmail.com
Fri Oct 26 08:32:20 UTC 2012


On Fri, Oct 26, 2012 at 09:57:31AM +0200, Martin Ertsås wrote:
> On 10/26/12 10:01, Martin Jansa wrote:
> > On Fri, Oct 26, 2012 at 09:14:43AM +0200, Koen Kooi wrote:
> >> -----BEGIN PGP SIGNED MESSAGE-----
> >> Hash: SHA1
> >>
> >> Op 25-10-12 20:58, Martin Ertsaas schreef:
> >>> Change version of ntp to match that in meta-networking. Also change
> >>> ntpdate to ntp-date to match the names used in meta-networking.
> >> While you are there, can you also disable the autoactivating for the unit?
> >> It's broken and I'm gettig tired of doing 'systemctl disable' on it for
> >> every system.
> > Cannot we fix it? Last time I've noticed it was using wrong binary (not
> > installed by ntpdate package) from .service file.
> >
> > SHR root at qemux86-64 ~ $ opkg files ntpdate
> > Package ntpdate (4.2.6p3-r7) is installed on root and has the following
> > files:
> > /etc/network/if-up.d/ntpdate
> > /usr/bin/ntpdate
> > SHR root at qemux86-64 ~ $ grep Exec /lib/systemd/system/ntpdate.service
> > ExecStart=/usr/bin/ntpd -q -g -x
> >
> > Cheers,
> >
> >
> >
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel at lists.openembedded.org
> > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
> 
> So what is happening is that if you just install ntpdate, it still tries
> to use ntpd, which doesn't exist? Sorry for the questions now, but I
> don't have anywhere to test this right now.

Yes, exactly.
ExecStart needs to be changed to use ntpdate in ntpdate.service. 

-ExecStart=/usr/bin/ntpd -q -g -x
+ExecStart=/usr/bin/ntpdate pool.ntp.org

Maybe we should also add something like
Requires=network.target
because right now there is only
Before=ntpd.service
to prevent already used socket (ntpdate[545]: the NTP socket is in use, exiting)

Cheers,

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20121026/c655da36/attachment-0002.sig>


More information about the Openembedded-devel mailing list