[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: NTP wont work as box is at 1980.

pigeon wrote:

> On Thu, Oct 02, 2003 at 11:28:12PM +0100, Ben Edwards wrote:
>>>On my laptop, I've added the -g switch to ntpd's startup, so the first
>>>time it syncs, it forcibly resets to the NTP time if that's out of
>>>bounds.  Doing this involved editing /etc/init.d/ntp-simple and adding
>>>'-- -g' to the end of the start-stop-daemon lines that start ntpd.
>>This is definitely the way to go but the script I am using is ntp.  Its
>>using start-stop-daemon, I have tried various things to pass the -g flag
>>across but with no avail.  I include the script below, any ideas?
> Try making this line
>>start-stop-daemon --start --quiet --exec '/usr/sbin/ntpd'
> something like
>>start-stop-daemon --start --quiet --exec /usr/sbin/ntpd -- -g

And if you want a better time keeping:

start-stop-daemon --start --quiet --nicelevel -20 --exec /usr/sbin/ntpd 
-- -g -L -N high

--nicelevel -20 to get higher priority in default scheduler
-L              for listenning on ethernet alias device ethX:Y
-N              high to use the "real time" scheduler with high priority

Tested on i386 and powerpc.


Yann Droneaud <yann.droneaud@mbda.fr>
MBDA France Missile Systems -- http://www.mbda.net/
Etudes Logiciels Sol, Bourges
Bureau +33 (0) 2 48 55 71 58 | Portable +33 (0) 6 88 40 82 43

Reply to: