![]() |
HowTo.FixTheClockUsingOnlyNtpclient HistoryHide minor edits - Show changes to markup April 27, 2009, at 02:48 PM
by --
Changed lines 50-53 from:
What I do instead of running ntpclient as background job, is running a small script basically doing an endless loop containing I start this script from a wrapper script in to:
What I do instead of running ntpclient as background job, is running a small script basically doing an endless loop containing I start this script from a wrapper script in April 27, 2009, at 02:48 PM
by --
Changed lines 50-53 from:
What I do instead of running ntpclient as background job, is running a small script basically doing an endless loop containing I start this script from a wrapper script in to:
What I do instead of running ntpclient as background job, is running a small script basically doing an endless loop containing I start this script from a wrapper script in April 27, 2009, at 02:43 PM
by -- Alternative method of using ntpclient
Changed lines 42-54 from:
This keeps accurate time on my Unslung as compared to an atomic (radio-controlled) clock. It is simpler than explicit use of adjtimex but still corrects the drift using that feature of ntpclient. to:
This keeps accurate time on my Unslung as compared to an atomic (radio-controlled) clock. It is simpler than explicit use of adjtimex but still corrects the drift using that feature of ntpclient. Alternate method based on ntpclientUnfortunately, the above method does not work correctly for me. Somehow, ntpclient gives up after some time, with the What I do instead of running ntpclient as background job, is running a small script basically doing an endless loop containing I start this script from a wrapper script in Is this an appropriate solution, or are there better ideas? November 22, 2008, at 01:13 AM
by --
Added lines 1-4:
Running ntpclient in the background from init.d scripts doesn't require nohup and only one '&' is needed. I changed those. Changed line 31 from:
nohup /opt/bin/ntpclient -f 0 -s -l -i 600 -g 10000 -h pool.ntp.org >> /var/log/ntp.log && to:
/opt/bin/ntpclient -f 0 -s -l -i 600 -g 10000 -h pool.ntp.org >> /var/log/ntp.log & November 03, 2008, at 03:01 PM
by --
Changed lines 13-14 from:
http://doolittle.icarus.com/ntpclient/HOWTO to:
http://doolittle.icarus.com/ntpclient/HOWTO November 03, 2008, at 03:01 PM
by --
Changed lines 13-14 from:
[http://doolittle.icarus.com/ntpclient/HOWTO] to:
http://doolittle.icarus.com/ntpclient/HOWTO November 03, 2008, at 03:00 PM
by --
Changed lines 13-14 from:
http://doolittle.icarus.com/ntpclient/HOWTO to:
[http://doolittle.icarus.com/ntpclient/HOWTO] November 03, 2008, at 03:00 PM
by --
Changed lines 12-14 from:
This is what I use then, following the advice in
http://doolittle.icarus.com/ntpclient/HOWTO to:
This is what I use then, following the advice in http://doolittle.icarus.com/ntpclient/HOWTO November 03, 2008, at 02:58 PM
by --
Changed lines 36-38 from:
automatically every time you reboot. to:
automatically every time you reboot. This keeps accurate time on my Unslung as compared to an atomic (radio-controlled) clock. It is simpler than explicit use of adjtimex but still corrects the drift using that feature of ntpclient. November 03, 2008, at 02:52 PM
by --
Changed lines 27-28 from:
nohup /opt/bin/ntpclient -f 0 -s -l -i 600 -g 10000 -h pool.ntp.org >> /var/log/ntp.log && to:
nohup /opt/bin/ntpclient -f 0 -s -l -i 600 -g 10000 -h pool.ntp.org >> /var/log/ntp.log && November 03, 2008, at 02:49 PM
by -- How to fix the clock using ntpclient correctly
Added lines 1-37:
How to Fix the Clock using Only ntpclient (correctly)The documentation for ntpclient says: On to ntpclient -l. This is actually easy, if you performed and understood
the previous steps. Run
which to me implies that you must deliberately run ntpclient in the background when using -l. This is what I use then, following the advice in
http://doolittle.icarus.com/ntpclient/HOWTO ipkg install ntpclient Create the file #!/bin/sh if [ -n "`pidof ntpclient`" ]; then /bin/killall ntpclient 2>/dev/null fi nohup /opt/bin/ntpclient -f 0 -s -l -i 600 -g 10000 -h pool.ntp.org >> /var/log/ntp.log && In Make Run the
view ·
edit ·
print ·
history ·
Last edited by Kees Moerman.
Based on work by Kees Moerman, SamiT, and RFinch. Originally by RFinch. Page last modified on April 27, 2009, at 02:48 PM
|