From ebfd5e5feb0ba595c0cfc85876b311bcfc40607e Mon Sep 17 00:00:00 2001 From: sthen Date: Wed, 5 Sep 2012 19:55:57 +0000 Subject: [PATCH] use a subdir for the pid file to avoid log spam; pointed out by Julien Dhaille --- net/nagios/nrpe/Makefile | 4 ++-- net/nagios/nrpe/pkg/nrpe.rc | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/net/nagios/nrpe/Makefile b/net/nagios/nrpe/Makefile index 274b4ded695..1676127b43a 100644 --- a/net/nagios/nrpe/Makefile +++ b/net/nagios/nrpe/Makefile @@ -1,10 +1,10 @@ -# $OpenBSD: Makefile,v 1.16 2011/12/17 22:01:13 sthen Exp $ +# $OpenBSD: Makefile,v 1.17 2012/09/05 19:55:57 sthen Exp $ COMMENT= Nagios Remote Plugin Executor # packaged from Icinga git repo. DISTNAME= icinga-nrpe-2.12.20100914 -REVISION= 1 +REVISION= 3 PKGNAME= ${DISTNAME:S/icinga-//} WRKDIST= ${WRKDIR}/icinga-nrpe CATEGORIES= net diff --git a/net/nagios/nrpe/pkg/nrpe.rc b/net/nagios/nrpe/pkg/nrpe.rc index 4895e453e8b..1d139066b75 100644 --- a/net/nagios/nrpe/pkg/nrpe.rc +++ b/net/nagios/nrpe/pkg/nrpe.rc @@ -1,9 +1,13 @@ #!/bin/sh # -# $OpenBSD: nrpe.rc,v 1.2 2011/12/17 22:01:13 sthen Exp $ +# $OpenBSD: nrpe.rc,v 1.3 2012/09/05 19:55:57 sthen Exp $ daemon="${TRUEPREFIX}/sbin/nrpe -d" . /etc/rc.d/rc.subr +rc_pre() { + install -o _nrpe -d /var/run/nrpe +} + rc_cmd $1