Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Oct 2015 08:55:08 +0000 (UTC)
From:      =?UTF-8?Q?Dag-Erling_Sm=c3=b8rgrav?= <des@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r289021 - head/etc/periodic/daily
Message-ID:  <201510080855.t988t8EM078044@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: des
Date: Thu Oct  8 08:55:08 2015
New Revision: 289021
URL: https://svnweb.freebsd.org/changeset/base/289021

Log:
  Add -n to the ntpq command line so it will show IP addresses instead of
  host names, which rarely fit in the available space.
  
  MFC after:	1 week

Modified:
  head/etc/periodic/daily/480.status-ntpd

Modified: head/etc/periodic/daily/480.status-ntpd
==============================================================================
--- head/etc/periodic/daily/480.status-ntpd	Thu Oct  8 08:30:40 2015	(r289020)
+++ head/etc/periodic/daily/480.status-ntpd	Thu Oct  8 08:55:08 2015	(r289021)
@@ -18,7 +18,7 @@ case "$daily_status_ntpd_enable" in
 	echo ""
 	echo "NTP status:"
 
-	synchronized=$(ntpq -p | tee /dev/stderr | grep '^\*')
+	synchronized=$(ntpq -pn | tee /dev/stderr | grep '^\*')
 	if [ -z "$synchronized" ]; then
 		rc=1
 	fi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510080855.t988t8EM078044>