File:  [Repository] / StartupItems / nrpe / nrpe
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Mon Sep 29 15:02:41 2008 UTC (15 years, 7 months ago) by casties
Branches: MAIN
CVS tags: HEAD
nrpe startup item

#!/bin/sh

. /etc/rc.common

##
# Start up the ZOPE database server on Mac OS X / Darwin
# (adapted from Marc Lyanage's PostgreSQL StartupItem)
#
# License
# -------
#
# The PostgreSQL BSD-style license applies to this file
#

NRPEDIR=/usr/local/nagios

StartService ()
{

	if [ "${NRPE:=-YES-}" = "-YES-" ]; then
	    ConsoleMessage "Starting NRPE server"
	    $NRPEDIR/bin/nrpe -c $NRPEDIR/etc/nrpe.cfg -d
	fi
}

RunService "$1"

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>