add an rc script for nrpe; ok ajacoutot@

This commit is contained in:
sthen 2011-01-20 14:04:42 +00:00
parent 6d0528957b
commit 84291d928e
3 changed files with 14 additions and 3 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.12 2010/11/19 22:31:35 espie Exp $
# $OpenBSD: Makefile,v 1.13 2011/01/20 14:04:42 sthen Exp $
COMMENT= Nagios Remote Plugin Executor
DISTNAME= nrpe-2.12
REVISION= 1
REVISION= 2
CATEGORIES= net
MAINTAINER= Stuart Henderson <sthen@openbsd.org>

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.3 2008/11/13 08:33:16 sthen Exp $
@comment $OpenBSD: PLIST,v 1.4 2011/01/20 14:04:42 sthen Exp $
@newgroup _nrpe:556
@newuser _nrpe:556:_nrpe:daemon:NRPE Account:/nonexistent:/sbin/nologin
@bin libexec/nagios/check_nrpe
@ -9,3 +9,4 @@ share/doc/nrpe/SECURITY
share/examples/nrpe/
share/examples/nrpe/nrpe.cfg
@sample ${SYSCONFDIR}/nrpe.cfg
@rcscript ${RCDIR}/nrpe

View File

@ -0,0 +1,10 @@
#!/bin/sh
#
# $OpenBSD: nrpe.rc,v 1.1 2011/01/20 14:04:42 sthen Exp $
daemon="${TRUEPREFIX}/sbin/nrpe"
daemon_flags="-d"
. /etc/rc.d/rc.subr
rc_cmd $1