diff options
-rw-r--r-- | net-mgmt/icinga/Makefile | 1 | ||||
-rw-r--r-- | net-mgmt/icinga/files/icinga.in | 5 | ||||
-rw-r--r-- | net-mgmt/icinga/files/ido2db.in | 6 |
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" |