ports/150879: [NEW PORT] sysutils/downtimed: System downtime monitoring and reporting tool

Janne Snabb snabb at epipe.com
Thu Sep 23 09:40:02 UTC 2010


>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 <snabb at epipe.com>
>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="<set as needed>"
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="<set as needed>"
X
8a2fd0ff531b24fe411594a980ec2319
echo x - downtimed/pkg-plist
sed 's/^X//' >downtimed/pkg-plist << '6260de5139f156c4d295eb5cdf61c873'
X at comment $FreeBSD$
Xbin/downtimes
Xsbin/downtimed
X at 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 <snabb at epipe.com>
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 at 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 <bsd.port.mk>
53281cb2910f83f4c783c33f95cbc920
exit
--- downtimed-0.2.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list