From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Sep 23 09:40:02 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 14224106566C for ; Thu, 23 Sep 2010 09:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9C68E8FC15 for ; Thu, 23 Sep 2010 09:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o8N9e1dm019700 for ; Thu, 23 Sep 2010 09:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o8N9e12r019699; Thu, 23 Sep 2010 09:40:01 GMT (envelope-from gnats) Resent-Date: Thu, 23 Sep 2010 09:40:01 GMT Resent-Message-Id: <201009230940.o8N9e12r019699@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Janne Snabb Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5CA6D10656A6 for ; Thu, 23 Sep 2010 09:31:40 +0000 (UTC) (envelope-from snabb@tiktik.epipe.com) Received: from tiktik.epipe.com (tiktik.epipe.com [IPv6:2001:470:8940:10::1]) by mx1.freebsd.org (Postfix) with ESMTP id 101048FC08 for ; Thu, 23 Sep 2010 09:31:39 +0000 (UTC) Received: from tiktik.epipe.com (localhost [127.0.0.1]) by tiktik.epipe.com (8.14.4/8.14.4) with ESMTP id o8N9VaD8014281 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 23 Sep 2010 09:31:39 GMT (envelope-from snabb@tiktik.epipe.com) Received: (from snabb@localhost) by tiktik.epipe.com (8.14.4/8.14.4/Submit) id o8N9VaqR013833; Thu, 23 Sep 2010 09:31:36 GMT (envelope-from snabb) Message-Id: <201009230931.o8N9VaqR013833@tiktik.epipe.com> Date: Thu, 23 Sep 2010 09:31:36 GMT From: Janne Snabb To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/150879: [NEW PORT] sysutils/downtimed: System downtime monitoring and reporting tool X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2010 09:40:02 -0000 >Number: 150879 >Category: ports >Synopsis: [NEW PORT] sysutils/downtimed: System downtime monitoring and reporting tool >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Sep 23 09:40:01 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Janne Snabb >Release: FreeBSD 8.1-RELEASE i386 >Organization: EPIPE Communications >Environment: System: FreeBSD tiktik.epipe.com 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Sat Jul 24 09:20:35 UTC 2010 >Description: downtimed is a program that monitors operating system downtime, uptime, shutdowns and crashes and keeps records of those events. downtimed(8) is a daemon process which is intended to be started automatically from system boot scripts every time when the operating system of a server starts. First the daemon logs its findings about the previous downtime to a specified logging destination as well as in a database file which can be displayed with downtimes(1). After that the daemon just keeps waiting in the background and periodically updates a time stamp file on the disk. downtimes(1) is a command-line tool which can be used to inspect previous downtime records. WWW: http://dist.epipe.com/downtimed/ Generated with FreeBSD Port Tools 0.99 >How-To-Repeat: >Fix: --- downtimed-0.2.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # downtimed # downtimed/files # downtimed/files/downtimed.in # downtimed/distinfo # downtimed/pkg-descr # downtimed/pkg-message # downtimed/pkg-plist # downtimed/Makefile # echo c - downtimed mkdir -p downtimed > /dev/null 2>&1 echo c - downtimed/files mkdir -p downtimed/files > /dev/null 2>&1 echo x - downtimed/files/downtimed.in sed 's/^X//' >downtimed/files/downtimed.in << 'e8c64c9b51c57b8619590e996c136fa0' X#!/bin/sh X# $FreeBSD$ X X# PROVIDE: downtimed X# REQUIRE: LOGIN syslogd X# KEYWORD: shutdown X X# This file should be installed as %%PREFIX%%/etc/rc.d/downtimed X# X# Define downtimed_* variables in one of these files: X# /etc/rc.conf X# /etc/rc.conf.local X# /etc/rc.conf.d/downtimed X# X# Add the following line to enable: X# downtimed_enable="YES" X# X# Add the following line to change the default options, see downtimed(8): X# downtimed_flags="" X# X# DO NOT CHANGE THE DEFAULT VALUES BELOW X X. /etc/rc.subr X Xname="downtimed" Xrcvar=`set_rcvar` X Xcommand="%%PREFIX%%/sbin/${name}" Xpidfile="/var/run/${name}.pid" X Xload_rc_config "$name" X X: ${downtimed_enable="NO"} X: ${downtimed_flags=""} X Xrun_rc_command "$1" e8c64c9b51c57b8619590e996c136fa0 echo x - downtimed/distinfo sed 's/^X//' >downtimed/distinfo << '77a29a05316b8489b9628e5b214f6656' XMD5 (downtimed-0.2.tar.xz) = 7fd24af6479247c43d6078c59205d010 XSHA256 (downtimed-0.2.tar.xz) = 4ffd52e9b0dcc4513687ce0d9cfcd139732692001ba246a2552087ac80404e07 XSIZE (downtimed-0.2.tar.xz) = 73608 77a29a05316b8489b9628e5b214f6656 echo x - downtimed/pkg-descr sed 's/^X//' >downtimed/pkg-descr << '980ec8b96c5cdbdbcdcd0ae20ce1831e' Xdowntimed is a program that monitors operating system downtime, uptime, Xshutdowns and crashes and keeps records of those events. X Xdowntimed(8) is a daemon process which is intended to be started Xautomatically from system boot scripts every time when the operating Xsystem of a server starts. First the daemon logs its findings about the Xprevious downtime to a specified logging destination as well as in a Xdatabase file which can be displayed with downtimes(1). After that the Xdaemon just keeps waiting in the background and periodically updates Xa time stamp file on the disk. X Xdowntimes(1) is a command-line tool which can be used to inspect previous Xdowntime records. X XWWW: http://dist.epipe.com/downtimed/ 980ec8b96c5cdbdbcdcd0ae20ce1831e echo x - downtimed/pkg-message sed 's/^X//' >downtimed/pkg-message << '8a2fd0ff531b24fe411594a980ec2319' X===> IMPORTANT NOTE: X X To set up downtimed, you need to edit one of the following X files: X /etc/rc.conf X /etc/rc.conf.local X /etc/rc.conf.d/downtimed X X Add the following line to enable: X downtimed_enable="YES" X X Add the following line to change the default options, see downtimed(8): X downtimed_flags="" X 8a2fd0ff531b24fe411594a980ec2319 echo x - downtimed/pkg-plist sed 's/^X//' >downtimed/pkg-plist << '6260de5139f156c4d295eb5cdf61c873' X@comment $FreeBSD$ Xbin/downtimes Xsbin/downtimed X@unexec /bin/rmdir /var/db/downtimed 2>/dev/null || true 6260de5139f156c4d295eb5cdf61c873 echo x - downtimed/Makefile sed 's/^X//' >downtimed/Makefile << '53281cb2910f83f4c783c33f95cbc920' X# New ports collection makefile for: downtimed X# Date created: 2010-09-06 X# Whom: Janne Snabb X# X# $FreeBSD$ X# X XPORTNAME= downtimed XPORTVERSION= 0.2 XCATEGORIES= sysutils XMASTER_SITES= http://dist.epipe.com/${PORTNAME}/ \ X http://launchpadlibrarian.net/56261240/ XDISTNAME= ${PORTNAME}-${PORTVERSION} X XMAINTAINER= snabb@epipe.com XCOMMENT= System downtime monitoring and reporting tool X XLICENSE= BSD XLICENSE_FILE= ${WRKSRC}/LICENSE X XUSE_XZ= yes XMAN1= downtimes.1 XMAN8= downtimed.8 XUSE_RC_SUBR= ${PORTNAME} XGNU_CONFIGURE= yes X Xpost-install: X @${CAT} ${PKGMESSAGE} X X.include 53281cb2910f83f4c783c33f95cbc920 exit --- downtimed-0.2.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted: