[openntpd] Not setting date at startup - possible fix

Problems with packages? Post here, using [tags] of the package name.

[openntpd] Not setting date at startup - possible fix

Postby shankargopal » Sat Dec 24, 2011 4:12 am

Dear all

I've just installed Arch Linux ARM on a new Pogoplug Pro, and a wonderful beast it is (ALARM, not the Pro itself :) ). This is a small possible fix to the openntpd package that may help.

I've found that openntpd is not setting the date at startup properly. A check in the logs shows many repeated attempts to sync but since the local clock is at 1970, the required change is too large, and adjtime fails. The Arch Linux Wiki states that the Arch package uses the "-s" option to overcome this problem, but this does not seem to be the case. I have edited /etc/rc.d/openntpd to replace
$this->bbcode_second_pass_code('', '
[ -z "$PID" ] && /usr/sbin/ntpd $PARAMS
')
with
$this->bbcode_second_pass_code('', '
[ -z "$PID" ] && /usr/sbin/ntpd -s $PARAM
')
All seems to be fine now. Since I'm a newbie to Arch I am not sure whether this was in fact the correct thing to do, and if it was, how to upload / commit it to the original package.
shankargopal
 
Posts: 23
Joined: Fri Dec 23, 2011 12:42 pm

Re: [openntpd] Not setting date at startup - possible fix

Postby term » Fri Jan 06, 2012 1:10 pm

Actually, "-s" is as default included in the $PARAMS statement from /etc/conf.d/openntpd. Check your /etc/conf.d/openntpd and add "-s" if needed.
term
 
Posts: 2
Joined: Wed Aug 17, 2011 6:30 pm


Return to Packages

Who is online

Users browsing this forum: No registered users and 4 guests