1d6b4b3f91
s#. %%RC_SUBR%%#. /etc/rc.subr#
26 lines
502 B
Bash
26 lines
502 B
Bash
#!/bin/sh
|
|
|
|
# PROVIDE: zabbix_server
|
|
# REQUIRE: DAEMON%%ZABBIX_REQUIRE%%
|
|
# KEYWORD: shutdown
|
|
#
|
|
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf to
|
|
# enable zabbix_server:
|
|
#
|
|
# zabbix_server_enable (bool): Set to NO by default. Set it to YES to
|
|
# enable zabbix_server.
|
|
#
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="zabbix_server"
|
|
rcvar=${name}_enable
|
|
|
|
command="%%PREFIX%%/sbin/${name}"
|
|
required_files="%%ETCDIR%%/${name}.conf"
|
|
|
|
load_rc_config $name
|
|
|
|
: ${zabbix_server_enable="NO"}
|
|
|
|
run_rc_command "$1"
|