From 966805d1e107151c1479109c7a36f863a706fdbe Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 12 Aug 2010 13:21:02 +0000 Subject: testing/zabbix: added pre-install and init.d scripts also build the agentd and proxy ref #251 --- testing/zabbix/zabbix-server.initd | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 testing/zabbix/zabbix-server.initd (limited to 'testing/zabbix/zabbix-server.initd') diff --git a/testing/zabbix/zabbix-server.initd b/testing/zabbix/zabbix-server.initd new file mode 100644 index 000000000..a661cd233 --- /dev/null +++ b/testing/zabbix/zabbix-server.initd @@ -0,0 +1,21 @@ +#!/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-server,v 1.1 2009/10/05 15:55:23 patrick Exp $ + +depend() { + need net + use mysql postgresql +} + +start() { + ebegin "Starting Zabbix server" + start-stop-daemon --start -c zabbix:zabbix --exec /usr/sbin/zabbix_server + eend $? +} + +stop() { + ebegin "Stopping Zabbix server" + start-stop-daemon --stop -u zabbix --pidfile /var/run/zabbix/zabbix_server.pid + eend $? +} -- cgit v1.2.3