use a subdir for the pid file to avoid log spam; pointed out by Julien Dhaille

This commit is contained in:
sthen 2012-09-05 19:55:57 +00:00
parent e894a7bb3d
commit ebfd5e5feb
2 changed files with 7 additions and 3 deletions

View File

@ -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 COMMENT= Nagios Remote Plugin Executor
# packaged from Icinga git repo. # packaged from Icinga git repo.
DISTNAME= icinga-nrpe-2.12.20100914 DISTNAME= icinga-nrpe-2.12.20100914
REVISION= 1 REVISION= 3
PKGNAME= ${DISTNAME:S/icinga-//} PKGNAME= ${DISTNAME:S/icinga-//}
WRKDIST= ${WRKDIR}/icinga-nrpe WRKDIST= ${WRKDIR}/icinga-nrpe
CATEGORIES= net CATEGORIES= net

View File

@ -1,9 +1,13 @@
#!/bin/sh #!/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" daemon="${TRUEPREFIX}/sbin/nrpe -d"
. /etc/rc.d/rc.subr . /etc/rc.d/rc.subr
rc_pre() {
install -o _nrpe -d /var/run/nrpe
}
rc_cmd $1 rc_cmd $1