[chrony-dev] Re: chronyd set time and exit

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


Seems like I forgot to ask question itself :)
The question is, has anyone done anything like that before? Would this plan work and save me space? What would be a good starting point?

-earlence

On Wed, Jun 8, 2016 at 11:18 AM, Earlence Fernandes <earlenceferns@xxxxxxxxx> wrote:
Hi

My use case requires only running once, setting the time and then exiting. I know this works by doing chronyd -q

However, I am planning on using chronyd for a small embedded arm linux project, and I want to cut off flash space as much as I can. that is, I'd like to trim down the binary size. Right now, on my platform, it takes about 114K, but smaller would be better. My idea is to comment out code that does all of the drift calculations, all of the daemon code etc, and only retain the core logic to do a one time authenticated NTP sync. Basically something like ntpupdate as its own binary.

-Earlence





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/