This update separates Java Gateway componentes from the Zabbix Server port, creating an additional slave port for each version. This way is possible to deploy a Java Gateway without the need to install Zabbix Server components. In the current state there wasn't an rcfile for the Java Gateway. [1] PR: 217777 Reported by: Juan Garcia <juan@ish.com.au> [1] Approved by: Pakhom Golynga <pg@pakhom.spb.ru> (maintainer)
27 lines
519 B
Bash
27 lines
519 B
Bash
#!/bin/sh
|
|
|
|
# PROVIDE: zabbix_java
|
|
# REQUIRE: NETWORKING SERVERS
|
|
# BEFORE: DAEMON
|
|
# KEYWORD: shutdown
|
|
#
|
|
# Options to configure zabbix_java via /etc/rc.conf:
|
|
#
|
|
# zabbix_java_enable (bool):
|
|
# Enable service on boot.
|
|
# Default: NO
|
|
#
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="zabbix_java"
|
|
rcvar=zabbix_java_enable
|
|
|
|
load_rc_config $name
|
|
|
|
: ${zabbix_java_enable:=NO}
|
|
|
|
start_cmd="/usr/bin/su -m zabbix -c %%PREFIX%%/sbin/zabbix_java/startup.sh"
|
|
stop_cmd="/usr/bin/su -m zabbix -c %%PREFIX%%/sbin/zabbix_java/shutdown.sh"
|
|
|
|
run_rc_command "$1"
|