freebsd-ports/net-mgmt/zabbix-server/files/zabbix_server.in
Doug Barton 1d6b4b3f91 Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr#
2010-03-27 00:15:24 +00:00

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"