summaryrefslogtreecommitdiff
path: root/net-mgmt/zabbix2/scripts/zabbix-agent.sh.sample
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/zabbix2/scripts/zabbix-agent.sh.sample')
-rw-r--r--net-mgmt/zabbix2/scripts/zabbix-agent.sh.sample24
1 files changed, 12 insertions, 12 deletions
diff --git a/net-mgmt/zabbix2/scripts/zabbix-agent.sh.sample b/net-mgmt/zabbix2/scripts/zabbix-agent.sh.sample
index e5728bd24051..1001c6cb694f 100644
--- a/net-mgmt/zabbix2/scripts/zabbix-agent.sh.sample
+++ b/net-mgmt/zabbix2/scripts/zabbix-agent.sh.sample
@@ -1,14 +1,14 @@
#!/bin/sh
-case "${1}" in
- start)
- echo -n "zabbix-agent "
- zabbix_agentd
- ;;
- stop)
- killall zabbix_agentd
- ;;
- *)
- echo Usage: `basename ${0}` "{start|stop}"
- ;;
-esac
+prefix=%PREFIX%
+
+zabbix_agentd_enable="YES"
+
+. %LOCALBASE%/etc/rc.subr
+
+name="zabbix_agentd"
+rcvar=`set_rcvar`
+command="${prefix}/bin/${name}"
+required_files="/etc/zabbix/${name}.conf"
+
+run_rc_command "$1"