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@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@qemux86-64 ~ $ grep Exec /lib/systemd/system/ntpdate.service > > ExecStart=/usr/bin/ntpd -q -g -x > > > > Cheers, > > > > > > > > _______________________________________________ > > Openembedded-devel mailing list > > [email protected] > > 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: [email protected]
signature.asc
Description: Digital signature
_______________________________________________ Openembedded-devel mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
