aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstefan <stefan@FreeBSD.org>2009-01-28 19:58:14 +0800
committerstefan <stefan@FreeBSD.org>2009-01-28 19:58:14 +0800
commit99b5f2c742b872359f50685234cd06be61b09aee (patch)
tree3f222c47ab6932867dedd7c3451b27d10fb7abab
parent22c8df7484fa445e40952e76eb3efcc0e5c95323 (diff)
downloadfreebsd-ports-gnome-99b5f2c742b872359f50685234cd06be61b09aee.tar.gz
freebsd-ports-gnome-99b5f2c742b872359f50685234cd06be61b09aee.tar.zst
freebsd-ports-gnome-99b5f2c742b872359f50685234cd06be61b09aee.zip
Fix stopping the daemon via rc script by properly setting $pidfile and
$command_interpreter. PR: 127444 Submitted by: Tyler Aviss <a-freebsd@phormix.com> Patch by: stefan
-rw-r--r--sysutils/nagios-statd/Makefile1
-rw-r--r--sysutils/nagios-statd/files/nagiosstatd.sh.in4
2 files changed, 4 insertions, 1 deletions
diff --git a/sysutils/nagios-statd/Makefile b/sysutils/nagios-statd/Makefile
index e6db8ff5d8cd..0c8dd3b55b5a 100644
--- a/sysutils/nagios-statd/Makefile
+++ b/sysutils/nagios-statd/Makefile
@@ -7,6 +7,7 @@
PORTNAME= nagios-statd
PORTVERSION= 3.12
+PORTREVISION= 1
CATEGORIES= sysutils python net-mgmt
MASTER_SITES= http://www.twoevils.org/files/netsaint_statd/
diff --git a/sysutils/nagios-statd/files/nagiosstatd.sh.in b/sysutils/nagios-statd/files/nagiosstatd.sh.in
index 2b89da7b2621..228caeaa4df7 100644
--- a/sysutils/nagios-statd/files/nagiosstatd.sh.in
+++ b/sysutils/nagios-statd/files/nagiosstatd.sh.in
@@ -22,10 +22,12 @@ name="nagiosstatd"
#rcvar=`set_rcvar`
rcvar=${name}_enable
-pidfile="${nagiosstatd_file}"
+pidfile="${nagiosstatd_pidfile}"
command=%%PREFIX%%/sbin/nagios-statd
+command_args="-P ${nagiosstatd_pidfile}"
+command_interpreter="python"
load_rc_config $name