aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorlme <lme@FreeBSD.org>2012-05-25 20:14:15 +0800
committerlme <lme@FreeBSD.org>2012-05-25 20:14:15 +0800
commitd0ac0f2ea75428f81169ad56999eb9fc5a61927a (patch)
tree7ef49566be0b80de0633298e2cc55bfa750adf54 /net-mgmt
parentaf7d135adc08766b83d2ba2e75255acdefa21471 (diff)
downloadfreebsd-ports-gnome-d0ac0f2ea75428f81169ad56999eb9fc5a61927a.tar.gz
freebsd-ports-gnome-d0ac0f2ea75428f81169ad56999eb9fc5a61927a.tar.zst
freebsd-ports-gnome-d0ac0f2ea75428f81169ad56999eb9fc5a61927a.zip
- Add my locally made changes to icinga.in and ido2db.in, so icinga and ido2db
can acutally start - Bump PORTREVISION Noticed by: Rene Petzold <3komma4khz@googlemail.com>
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/icinga/Makefile1
-rw-r--r--net-mgmt/icinga/files/icinga.in5
-rw-r--r--net-mgmt/icinga/files/ido2db.in6
3 files changed, 12 insertions, 0 deletions
diff --git a/net-mgmt/icinga/Makefile b/net-mgmt/icinga/Makefile
index 5c3523894970..f4629e85963d 100644
--- a/net-mgmt/icinga/Makefile
+++ b/net-mgmt/icinga/Makefile
@@ -7,6 +7,7 @@
PORTNAME= icinga
PORTVERSION= 1.7.0
+PORTREVISION= 1
CATEGORIES= net-mgmt
MASTER_SITES= SF
diff --git a/net-mgmt/icinga/files/icinga.in b/net-mgmt/icinga/files/icinga.in
index ba1b0ab767e1..a085ff3361fa 100644
--- a/net-mgmt/icinga/files/icinga.in
+++ b/net-mgmt/icinga/files/icinga.in
@@ -38,6 +38,7 @@ icinga_logfile="%%ICINGADIR%%/${name}.log"
icinga_statusfile="%%ICINGADIR%%/status.sav"
icinga_cmdfile="%%ICINGADIR%%/rw/${name}.cmd"
+start_cmd="start_cmd"
start_precmd="start_precmd"
stop_postcmd="stop_postcmd"
restart_precmd="icinga_checkconfig"
@@ -108,4 +109,8 @@ stop_postcmd() {
rm -f "%%ICINGADIR%%/icinga.tmp" "${icinga_cmdfile}"
}
+start_cmd() {
+ ${command} ${command_args}
+}
+
run_rc_command "$1"
diff --git a/net-mgmt/icinga/files/ido2db.in b/net-mgmt/icinga/files/ido2db.in
index ea57976f5a12..def380a49cd4 100644
--- a/net-mgmt/icinga/files/ido2db.in
+++ b/net-mgmt/icinga/files/ido2db.in
@@ -25,7 +25,13 @@ load_rc_config "${name}"
command="%%PREFIX%%/bin/${name}"
command_args="-c"
+start_cmd="start_cmd"
+
required_files="${ido2db_configfile}"
command_args="${command_args} ${ido2db_configfile}"
+start_cmd() {
+ ${command} ${command_args}
+}
+
run_rc_command "$1"