From olli@lurza.secnetix.de Fri May 11 18:56:31 2007 Return-Path: Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9D2D216A409 for ; Fri, 11 May 2007 18:56:31 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.freebsd.org (Postfix) with ESMTP id 26C1713C4AD for ; Fri, 11 May 2007 18:56:30 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (sxeryj@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id l4BIeGPK086850; Fri, 11 May 2007 20:40:21 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id l4BIeGGo086849; Fri, 11 May 2007 20:40:16 +0200 (CEST) (envelope-from olli) Message-Id: <200705111840.l4BIeGGo086849@lurza.secnetix.de> Date: Fri, 11 May 2007 20:40:16 +0200 (CEST) From: Oliver Fromme Reply-To: Oliver Fromme To: FreeBSD-gnats-submit@FreeBSD.ORG Cc: Oliver Fromme Subject: New file: /etc/periodic/daily/480.status-ntp X-Send-Pr-Version: 3.113 X-GNATS-Notify: >Number: 112604 >Category: conf >Synopsis: New file: /etc/periodic/daily/480.status-ntp >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: closed >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri May 11 19:00:10 GMT 2007 >Closed-Date: Sat Jun 16 08:07:37 GMT 2007 >Last-Modified: Sat Jun 16 08:07:37 GMT 2007 >Originator: Oliver Fromme >Release: FreeBSD 6.2-STABLE i386 >Organization: secnetix GmbH & Co. KG http://www.secnetix.de/bsd >Environment: FreeBSD 6-stable + 7-current >Description: The script below adds an optional status report for NTP to the daily periodic output. It exits with return code 0 if the local ntpd is successfully synchronized. It exits with return code 1 if the local ntpd is currently not synchronized, or if ntpd isn't running at all, or if it's refusing connections from localhost. >How-To-Repeat: Save the script below as /etc/periodic/daily/480.status-ntp and add this line to /etc/periodic.conf: daily_status_ntp_enable="YES" Suggested default entry for /etc/defaults/periodic.conf: # 480.status-ntp daily_status_ntp_enable="NO" # Check NTP status >Fix: #!/bin/sh # # $FreeBSD$ # # If there is a global system configuration file, suck it in. # if [ -r /etc/defaults/periodic.conf ] then . /etc/defaults/periodic.conf source_periodic_confs fi rc=0 case "$daily_status_ntp_enable" in [Yy][Ee][Ss]) echo "" echo "NTP status:" synchronized=$(ntpq -p | tee /dev/stderr | grep '^\*') if [ -z "$synchronized" ]; then rc=1 fi ;; esac exit $rc >Release-Note: >Audit-Trail: From: Maxim Konovalov To: Oliver Fromme Cc: bug-followup@freebsd.org Subject: Re: conf/112604: New file: /etc/periodic/daily/480.status-ntp Date: Sat, 12 May 2007 13:49:33 +0400 (MSD) Hi, I suggest to rename it to 480.status-ntpd to match the name of the daemon. Objections? -- Maxim Konovalov From: Oliver Fromme To: maxim@macomnet.ru (Maxim Konovalov) Cc: olli@secnetix.de (Oliver Fromme), bug-followup@freebsd.org Subject: Re: conf/112604: New file: /etc/periodic/daily/480.status-ntp Date: Sat, 12 May 2007 12:28:44 +0200 (CEST) Maxim Konovalov wrote: > I suggest to rename it to 480.status-ntpd to match the name of the > daemon. Objections? Good point. No objections from me. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "If Java had true garbage collection, most programs would delete themselves upon execution." -- Robert Sewell From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: conf/112604: commit references a PR Date: Sun, 13 May 2007 09:33:43 +0000 (UTC) maxim 2007-05-13 09:33:35 UTC FreeBSD src repository Modified files: etc/defaults periodic.conf share/man/man5 periodic.conf.5 Added files: etc/periodic/daily 480.status-ntpd Log: o Add a script to check ntpd(8) state. Default is off. PR: conf/112604 Submitted by: Oliver Fromme MFC after: 1 month Revision Changes Path 1.43 +3 -0 src/etc/defaults/periodic.conf 1.1 +28 -0 src/etc/periodic/daily/480.status-ntpd (new) 1.65 +6 -1 src/share/man/man5/periodic.conf.5 _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org" State-Changed-From-To: open->patched State-Changed-By: maxim State-Changed-When: Mon May 14 17:35:30 UTC 2007 State-Changed-Why: Committed to HEAD. Thanks! http://www.freebsd.org/cgi/query-pr.cgi?pr=112604 State-Changed-From-To: patched->closed State-Changed-By: maxim State-Changed-When: Sat Jun 16 08:07:22 UTC 2007 State-Changed-Why: Merged to RELENG_6. http://www.freebsd.org/cgi/query-pr.cgi?pr=112604 >Unformatted: