public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Patch to /etc/init.d/ntpd to set tickadj if needed
@ 2003-07-07 21:15 Rob Snow
  2003-07-07 21:40 ` George Shapovalov
  0 siblings, 1 reply; 3+ messages in thread
From: Rob Snow @ 2003-07-07 21:15 UTC (permalink / raw
  To: Gentoo-Dev

[-- Attachment #1: Type: text/plain, Size: 569 bytes --]

Please excuse me if this is the wrong list to send this to, this is my first submission to  
Gentoo since I recently installed. 
  
This patch adds a feature to set and save a tick value for machines that do not keep  
good time with the default tick value.  This does not adjust the value itself, it simply  
keeps the current value between start/stop and reboots.  I believe this might be quite 
useful for those with bad tick values due to overclocking or just plain broken 
hardware.  It doesn't have any adverse effect on those who don't need the change. 
 
-Rob 

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: ntpd-patch.diff --]
[-- Type: text/x-diff; name="ntpd-patch.diff", Size: 614 bytes --]

--- ntpd	2003-07-01 12:19:46.000000000 -0500
+++ /shared/ntpd-tickadj	2003-07-06 17:26:12.000000000 -0500
@@ -20,6 +20,10 @@
 start() {
 	checkconfig || return $?
 
+	if [ -f /etc/ntp/tickadj.conf ] ; then
+		/usr/bin/tickadj `cat /etc/ntp/tickadj.conf`
+	fi
+
 	if [ -n "${NTPDATE_CMD}" ] ; then
 		ebegin "Initializing clock via ${NTPDATE_CMD}"
 		${NTPDATE_CMD} ${NTPDATE_OPTS} > /dev/null
@@ -35,6 +39,7 @@
 }
 
 stop() {
+	/usr/bin/tickadj | sed -e "s/tick\ =\ //g" >/etc/ntp/tickadj.conf
 	ebegin "Stopping ntpd"
 	start-stop-daemon --stop --quiet --pidfile /var/run/ntpd.pid
 	eend $? "Failed to stop ntpd"

[-- Attachment #3: Type: text/plain, Size: 37 bytes --]

--
gentoo-dev@gentoo.org mailing list

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-dev] Patch to /etc/init.d/ntpd to set tickadj if needed
  2003-07-07 21:15 [gentoo-dev] Patch to /etc/init.d/ntpd to set tickadj if needed Rob Snow
@ 2003-07-07 21:40 ` George Shapovalov
  2003-07-07 22:41   ` Rob Snow
  0 siblings, 1 reply; 3+ messages in thread
From: George Shapovalov @ 2003-07-07 21:40 UTC (permalink / raw
  To: gentoo-dev

Hi Rob.

Thanks a lot for your contribution!
However please use http://bugs.gentoo.org for these kinds of submissions. This 
will ensure that your patch will get assigned to the appropriate developer 
and will be taken care of in a due course.

George

On Monday 07 July 2003 14:15, Rob Snow wrote:
> Please excuse me if this is the wrong list to send this to, this is my
> first submission to Gentoo since I recently installed.
>
> This patch adds a feature to set and save a tick value for machines that do
> not keep good time with the default tick value.  This does not adjust the
> value itself, it simply keeps the current value between start/stop and
> reboots.  I believe this might be quite useful for those with bad tick
> values due to overclocking or just plain broken hardware.  It doesn't have
> any adverse effect on those who don't need the change.
>
> -Rob



--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-dev] Patch to /etc/init.d/ntpd to set tickadj if needed
  2003-07-07 21:40 ` George Shapovalov
@ 2003-07-07 22:41   ` Rob Snow
  0 siblings, 0 replies; 3+ messages in thread
From: Rob Snow @ 2003-07-07 22:41 UTC (permalink / raw
  To: gentoo-dev

Thank you much for the pointer, bug has been entered. 
 
-Rob 
 
On Mon, 7 Jul 2003 14:40:50 -0700, George Shapovalov wrote 
> Hi Rob. 
>  
> Thanks a lot for your contribution! 
> However please use http://bugs.gentoo.org for these kinds of  
> submissions. This will ensure that your patch will get assigned to  
> the appropriate developer and will be taken care of in a due course. 
>  
> George 
>  
> On Monday 07 July 2003 14:15, Rob Snow wrote: 
> > Please excuse me if this is the wrong list to send this to, this is my 
> > first submission to Gentoo since I recently installed. 
> > 
> > This patch adds a feature to set and save a tick value for machines that do 
> > not keep good time with the default tick value.  This does not adjust the 
> > value itself, it simply keeps the current value between start/stop and 
> > reboots.  I believe this might be quite useful for those with bad tick 
> > values due to overclocking or just plain broken hardware.  It doesn't have 
> > any adverse effect on those who don't need the change. 
> > 
> > -Rob 
>  
> -- 
> gentoo-dev@gentoo.org mailing list 

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-07-07 22:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-07 21:15 [gentoo-dev] Patch to /etc/init.d/ntpd to set tickadj if needed Rob Snow
2003-07-07 21:40 ` George Shapovalov
2003-07-07 22:41   ` Rob Snow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox