Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/zabbix/files/1.6.6/init.d: zabbix-proxy
Date: Tue, 06 Oct 2009 16:24:37
Message-Id: E1MvCq3-0002xE-DQ@stork.gentoo.org
1 patrick 09/10/06 16:24:35
2
3 Added: zabbix-proxy
4 Log:
5 Adding proxy init script #283970 and fixing log paths #283817. Thanks to all the reporters and testers.
6 (Portage version: 2.2_rc44/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 net-analyzer/zabbix/files/1.6.6/init.d/zabbix-proxy
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/zabbix/files/1.6.6/init.d/zabbix-proxy?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/zabbix/files/1.6.6/init.d/zabbix-proxy?rev=1.1&content-type=text/plain
13
14 Index: zabbix-proxy
15 ===================================================================
16 #!/sbin/runscript
17 # Copyright 1999-2007 Gentoo Foundation
18 # Distributed under the terms of the GNU General Public License v2
19 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/files/1.6.6/init.d/zabbix-proxy,v 1.1 2009/10/06 16:24:35 patrick Exp $
20
21 depend() {
22 need net
23 #use mysql postgresql
24 }
25
26 start() {
27 ebegin "Starting Zabbix proxy"
28 start-stop-daemon --start -c zabbix:zabbix --exec /usr/sbin/zabbix_proxy
29 eend $?
30 }
31
32 stop() {
33 ebegin "Stopping Zabbix proxy"
34 start-stop-daemon --stop -u zabbix --pidfile /var/run/zabbix/zabbix_proxy.pid
35 eend $?
36 }