diff options
author | Duane Hughes <duanejevon@gmail.com> | 2010-12-06 07:22:40 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-12-06 15:48:16 +0000 |
commit | a30088cd2aef91d15628678e307e8682529c2df9 (patch) | |
tree | a0ddd69555736f34872b6035d6183f00b7b03f49 /main/zabbix/zabbix-agentd.initd | |
parent | 0b9cf0748b5f8df6561e1863c93150e9c260bbb0 (diff) | |
download | aports-a30088cd2aef91d15628678e307e8682529c2df9.tar.bz2 aports-a30088cd2aef91d15628678e307e8682529c2df9.tar.xz |
main/zabbix: moved from testing
fixes #251
Diffstat (limited to 'main/zabbix/zabbix-agentd.initd')
-rw-r--r-- | main/zabbix/zabbix-agentd.initd | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/main/zabbix/zabbix-agentd.initd b/main/zabbix/zabbix-agentd.initd new file mode 100644 index 0000000000..b14b5fe74b --- /dev/null +++ b/main/zabbix/zabbix-agentd.initd @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/files/1.6.6/init.d/zabbix-agentd,v 1.1 2009/10/05 15:55:23 patrick 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 $? +} |