diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-08-12 13:21:02 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-08-12 15:05:13 +0000 |
commit | 966805d1e107151c1479109c7a36f863a706fdbe (patch) | |
tree | b809014be8773a134600480f547a849bee3e33b1 /testing/zabbix/zabbix-server.initd | |
parent | ef61dcbb6645443f0034d1479d07a34aa2ebe42b (diff) | |
download | aports-966805d1e107151c1479109c7a36f863a706fdbe.tar.bz2 aports-966805d1e107151c1479109c7a36f863a706fdbe.tar.xz |
testing/zabbix: added pre-install and init.d scripts
also build the agentd and proxy
ref #251
Diffstat (limited to 'testing/zabbix/zabbix-server.initd')
-rw-r--r-- | testing/zabbix/zabbix-server.initd | 21 |
1 files changed, 21 insertions, 0 deletions
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 $? +} |