packages/admin/zabbix/files/zabbix_agentd.init
florian 5f5ee085e2 Add zabix agent configuration and init script (#3936)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@12749 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-28 06:43:14 +00:00

22 lines
335 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2008 OpenWrt.org
START=60
start() {
[ -f /etc/zabbix/zabbix_agentd.conf ] || {
echo "/etc/zabbix/zabbix_agentd.conf does not exist !";
exit 0;
};
[ -x /usr/sbin/zabbix_agentd ] && /usr/sbin/zabbix_agentd
}
stop() {
killall zabbix_agentd
}
restart() {
stop
sleep 1
start
}