From owner-freebsd-stable Mon Oct 30 9:41:48 2000 Delivered-To: freebsd-stable@freebsd.org Received: from gndrsh.dnsmgr.net (GndRsh.dnsmgr.net [198.145.92.4]) by hub.freebsd.org (Postfix) with ESMTP id 8FB1137B4C5 for ; Mon, 30 Oct 2000 09:41:43 -0800 (PST) Received: (from freebsd@localhost) by gndrsh.dnsmgr.net (8.9.3/8.9.3) id JAA60178; Mon, 30 Oct 2000 09:41:14 -0800 (PST) (envelope-from freebsd) From: "Rodney W. Grimes" Message-Id: <200010301741.JAA60178@gndrsh.dnsmgr.net> Subject: Re: nulled output of rc.network In-Reply-To: <4.3.2.7.2.20001030144701.00aa0890@vivaldi> from Sergei Vyshenski at "Oct 30, 2000 02:56:22 pm" To: svysh@pn.sinp.msu.ru (Sergei Vyshenski) Date: Mon, 30 Oct 2000 09:41:13 -0800 (PST) Cc: freebsd-stable@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > /etc/rc.network script has a line: > > ${ntpdate_program:-ntpdate} ${ntpdate_flags} >/dev/null 2>&1 > > With output here being sent to null, how can I notice that my favorite > ntp server went down, has changed its service policy, its IP etc? > Maybe just > > ${ntpdate_program:-ntpdate} ${ntpdate_flags} > > could be a better option? I actually apply this one to all of our systems: case ${ntpdate_enable} in [Yy][Ee][Ss]) echo -n ' ntpdate' - ${ntpdate_program:-ntpdate} ${ntpdate_flags} >/dev/null 2>&1 + sleep 20 + ${ntpdate_program:-ntpdate} ${ntpdate_flags} + echo -n 'Doing more additional network setup:' ;; (White space munged by X cut-n-paste, sleep 20 is a hack to allow the routing daemons started just before this a chance to install some routes so that ntpdate can actually contact the ntpdate server, the extra echo is to make the console output look correct for later daemons started). -- Rod Grimes - KD7CAX @ CN85sl - (RWG25) rgrimes@gndrsh.dnsmgr.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message