diff options
Diffstat (limited to 'zarb-ml/mageia-dev/2013-February/022751.html')
-rw-r--r-- | zarb-ml/mageia-dev/2013-February/022751.html | 181 |
1 files changed, 181 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/2013-February/022751.html b/zarb-ml/mageia-dev/2013-February/022751.html new file mode 100644 index 000000000..4f6ef4d13 --- /dev/null +++ b/zarb-ml/mageia-dev/2013-February/022751.html @@ -0,0 +1,181 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<HTML> + <HEAD> + <TITLE> [Mageia-dev] Why ntpdate still there? + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Why%20ntpdate%20still%20there%3F&In-Reply-To=%3C51190676.8010506%40colin.guthr.ie%3E"> + <META NAME="robots" CONTENT="index,nofollow"> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="022746.html"> + <LINK REL="Next" HREF="023059.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[Mageia-dev] Why ntpdate still there?</H1> + <B>Colin Guthrie</B> + <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Why%20ntpdate%20still%20there%3F&In-Reply-To=%3C51190676.8010506%40colin.guthr.ie%3E" + TITLE="[Mageia-dev] Why ntpdate still there?">mageia at colin.guthr.ie + </A><BR> + <I>Mon Feb 11 15:55:50 CET 2013</I> + <P><UL> + <LI>Previous message: <A HREF="022746.html">[Mageia-dev] Why ntpdate still there? +</A></li> + <LI>Next message: <A HREF="023059.html">[Mageia-dev] Why ntpdate still there? +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#22751">[ date ]</a> + <a href="thread.html#22751">[ thread ]</a> + <a href="subject.html#22751">[ subject ]</a> + <a href="author.html#22751">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>'Twas brillig, and Pierre Jarillon at 11/02/13 14:23 did gyre and gimble: +><i> Le lundi 11 février 2013 13:18:23, Colin Guthrie a écrit : +</I>>><i> So ntpdate as a service is just a one-shot thing, it happens once at +</I>>><i> boot to ensure the clocks are properly set and then ntpd takes over for +</I>>><i> the rest of the time that machine stays up. +</I>>><i> +</I>>><i> As far as I'm aware, there is nothing integrated into crontab regarding +</I>>><i> ntpdate, but please feel free to correct me on that one. +</I>><i> +</I>><i> Yes, this was the old system. I am not an expert in ntp, but I have read +</I>><i> carefully <A HREF="http://ntp.org">http://ntp.org</A> few years ago and I return on it now and then. +</I>><i> I can miss something... I am not the truth! +</I>><i> +</I>><i> On the web site <A HREF="http://www.ntp.org/">http://www.ntp.org/</A> ->Implementation Documentation +</I>><i> <A HREF="http://www.eecis.udel.edu/~mills/ntp/html/ntpdate.html">http://www.eecis.udel.edu/~mills/ntp/html/ntpdate.html</A> said: +</I>><i> Disclaimer: The functionality of this program is now available in the ntpd +</I>><i> program. See the -q command line option in the ntpd - Network Time Protocol +</I>><i> (NTP) daemon page. After a suitable period of mourning, the ntpdate program is +</I>><i> to be retired from this distribution +</I>><i> +</I>><i> And <A HREF="http://www.eecis.udel.edu/~mills/ntp/html/ntpd.html">http://www.eecis.udel.edu/~mills/ntp/html/ntpd.html</A> and the man tell us: +</I>><i> +</I>><i> -q +</I>><i> Exit the ntpd just after the first time the clock is set. This behavior mimics +</I>><i> that of the ntpdate program, which is to be retired. The -g and -x options can +</I>><i> be used with this option. Note: The kernel time discipline is disabled with +</I>><i> this option. +</I>><i> -g +</I>><i> Normally, ntpd exits with a message to the system log if the offset exceeds the +</I>><i> panic threshold, which is 1000 s by default. This option allows the time to be +</I>><i> set to any value without restriction; however, this can happen only once. If +</I>><i> the threshold is exceeded after that, ntpd will exit with a message to the +</I>><i> system log. This option can be used with the -q and -x options. See the tinker +</I>><i> command for other options. +</I>><i> +</I>><i> The same options are set in the man of ntp. +</I>><i> +</I>><i> IMO, ntpdate should be replaced with: ntpd -gq +</I> +Yup that would be fine. + +><i> I don't understand why ntpdate is listed as an active daemon in drakxservices. +</I> +This is simply because of the fact that drakxservices doesn't really +grok the kind of granularity you want here. + +See the direct output from e.g. "systemctl status ntpdate.service" vs. +"systemctl status ntpd.service" (hint: compare "active (exited)" vs +"active (running)") + +For the former, it's a "oneshot" and as it has been run and it ran +successfully, it's is thus considered "active". + +Really we should teach drakxservices to present that properly: e.g. show +it as "Completed" or something, rather than "Active" + +><i> In /etc/sysconfig/ntpd : +</I>><i> - Mageia 1 : OPTIONS="-u ntp:ntp -p /var/run/ntpd.pid" +</I>><i> - Mageia 2 : OPTIONS="-g" +</I>><i> - Mageia 3 : OPTIONS="-g" +</I>><i> +</I>><i> Then it seems that ntpdate is no longer useful since Mageia 2. +</I> +Yes indeed. It seems the -g option passed there makes the separate +ntpdate service obsolete. It basically gives ntpd a one-chance option to +do a big jump, which is basically what we were achieving with that +double unit setup. + +I'll kill off the ntpdate stuff. + +Many thanks for poking into this :) + +Col + + + +-- + +Colin Guthrie +colin(at)mageia.org +<A HREF="http://colin.guthr.ie/">http://colin.guthr.ie/</A> + +Day Job: + Tribalogic Limited <A HREF="http://www.tribalogic.net/">http://www.tribalogic.net/</A> +Open Source: + Mageia Contributor <A HREF="http://www.mageia.org/">http://www.mageia.org/</A> + PulseAudio Hacker <A HREF="http://www.pulseaudio.org/">http://www.pulseaudio.org/</A> + Trac Hacker <A HREF="http://trac.edgewall.org/">http://trac.edgewall.org/</A> +</PRE> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="022746.html">[Mageia-dev] Why ntpdate still there? +</A></li> + <LI>Next message: <A HREF="023059.html">[Mageia-dev] Why ntpdate still there? +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#22751">[ date ]</a> + <a href="thread.html#22751">[ thread ]</a> + <a href="subject.html#22751">[ subject ]</a> + <a href="author.html#22751">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev +mailing list</a><br> +</body></html> |