aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2008-12-26 04:24:43 +0800
committermiwi <miwi@FreeBSD.org>2008-12-26 04:24:43 +0800
commit0ca682c146a97ee07f480c5f0d5bc3703defcfe5 (patch)
treec185528412c4039b459f801cd7a222726bacf304 /net-mgmt
parent9970facb53f871bd5bb8b0e6fdc52d3dbce246b8 (diff)
downloadfreebsd-ports-gnome-0ca682c146a97ee07f480c5f0d5bc3703defcfe5.tar.gz
freebsd-ports-gnome-0ca682c146a97ee07f480c5f0d5bc3703defcfe5.tar.zst
freebsd-ports-gnome-0ca682c146a97ee07f480c5f0d5bc3703defcfe5.zip
- Modify rc.d script to allow administrator to change PID file location
without editing rc.d script. New knob nrpe2_pidfile is provided for this and it defaults to the old value of the PID file. - Bump PORTREVISION PR: 129386 Submitted by: Eygene Ryabinkin <rea-fbsd@codelabs.ru> Approved by: maintainer
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/nrpe2/Makefile1
-rw-r--r--net-mgmt/nrpe2/files/nrpe2.in5
2 files changed, 5 insertions, 1 deletions
diff --git a/net-mgmt/nrpe2/Makefile b/net-mgmt/nrpe2/Makefile
index 65337394090d..06db4b5454f5 100644
--- a/net-mgmt/nrpe2/Makefile
+++ b/net-mgmt/nrpe2/Makefile
@@ -7,6 +7,7 @@
PORTNAME= nrpe
DISTVERSION= 2.12
+PORTREVISION= 1
CATEGORIES= net-mgmt
MASTER_SITES= SF
MASTER_SITE_SUBDIR= nagios
diff --git a/net-mgmt/nrpe2/files/nrpe2.in b/net-mgmt/nrpe2/files/nrpe2.in
index 2f94c63efc77..8cde7252158b 100644
--- a/net-mgmt/nrpe2/files/nrpe2.in
+++ b/net-mgmt/nrpe2/files/nrpe2.in
@@ -13,6 +13,7 @@
# Set it to "YES" to enable nrpe2.
# nrpe2_flags (str): Set to "" by default.
# nrpe2_configfile (str): Set to "%%PREFIX%%/etc/nrpe.cfg" by default.
+# nrpe2_pidfile (str): Set to "%%NAGIOSDIR%%/nrpe2.pid" by default.
#
. %%RC_SUBR%%
@@ -23,16 +24,18 @@ rcvar=`set_rcvar`
command="%%PREFIX%%/sbin/nrpe2"
command_args="-d"
extra_commands="reload"
-pidfile="%%NAGIOSDIR%%/nrpe2.pid"
sig_reload=HUP
[ -z "${nrpe2_enable}" ] && nrpe2_enable="NO"
[ -z "${nrpe2_flags}" ] && nrpe2_flags=""
[ -z "${nrpe2_configfile}" ] && nrpe2_configfile="%%PREFIX%%/etc/nrpe.cfg"
+[ -z "${nrpe2_pidfile}" ] && nrpe2_pidfile="%%NAGIOSDIR%%/nrpe2.pid"
load_rc_config "${name}"
+pidfile="${nrpe2_pidfile}"
+
required_files="${nrpe2_configfile}"
command_args="${command_args} -c ${nrpe2_configfile}"