aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/zabbix2/files/zabbix_server.sh.in
blob: 1982f809d1c51926358c677eee15e27af7176dc4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
# PROVIDE: zabbix_server
# REQUIRE: DAEMON
# KEYWORD: shutdown

. %%RC_SUBR%%

name="zabbix_server"
rcvar=${name}_enable
load_rc_config $name

command="%%PREFIX%%/bin/${name}"
required_files="%%PREFIX%%/etc/zabbix/${name}.conf"

eval "${rcvar}=\${${rcvar}:-'NO'}"

run_rc_command "$1"