summaryrefslogtreecommitdiff
blob: 1524ad239666b3fdfda83a750b8c370c96f35ed8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/sbin/runscript
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix-agent/files/1.1/init.d/zabbix-agentd,v 1.1 2006/06/06 13:03:26 wschlich Exp $

depend() {
	need net
	provide zabbix-agent
	use zabbix-server
}

start() {
	ebegin "Starting Zabbix agent"
	start-stop-daemon --start -c zabbix:zabbix --exec /usr/sbin/zabbix_agentd
	eend $?
}

stop() {
	ebegin "Stopping Zabbix agent"
	start-stop-daemon  --stop -u zabbix --pidfile /var/run/zabbix/zabbix_agentd.pid
	eend $?
}