From: | "Matthew Marlow (mattm)" <mattm@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-analyzer/zabbix/files/2.4/init.d: zabbix-server zabbix-proxy zabbix-agentd |
Date: | Wed, 29 Oct 2014 22:38:44 |
Message-Id: | 20141029223838.077B1907A@oystercatcher.gentoo.org |
1 | mattm 14/10/29 22:38:38 |
2 | |
3 | Added: zabbix-server zabbix-proxy zabbix-agentd |
4 | Log: |
5 | Major version bump 2.4.1, totally experimental, has not been tested. Package masked. Do not install unless you are using a non-production system and can contribute to improving gentoo support for 2.4 and comment on bug 524010. |
6 | |
7 | (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 786037A7) |
8 | |
9 | Revision Changes Path |
10 | 1.1 net-analyzer/zabbix/files/2.4/init.d/zabbix-server |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/zabbix/files/2.4/init.d/zabbix-server?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/zabbix/files/2.4/init.d/zabbix-server?rev=1.1&content-type=text/plain |
14 | |
15 | Index: zabbix-server |
16 | =================================================================== |
17 | #!/sbin/runscript |
18 | # Copyright 1999-2014 Gentoo Foundation |
19 | # Distributed under the terms of the GNU General Public License v2 |
20 | # $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/files/2.4/init.d/zabbix-server,v 1.1 2014/10/29 22:38:37 mattm Exp $ |
21 | |
22 | pid_file="/run/zabbix/zabbix_server.pid" |
23 | |
24 | depend() { |
25 | need net |
26 | use mysql postgresql |
27 | } |
28 | start_pre() { |
29 | checkpath -d -m 0775 -o zabbix:zabbix /run/zabbix |
30 | } |
31 | |
32 | start() { |
33 | ebegin "Starting Zabbix server" |
34 | start-stop-daemon --start --user zabbix --group zabbix --pidfile ${pid_file} \ |
35 | --exec /usr/sbin/zabbix_server -- -c /etc/zabbix/zabbix_server.conf |
36 | eend $? |
37 | } |
38 | |
39 | stop() { |
40 | ebegin "Stopping Zabbix server" |
41 | start-stop-daemon --stop --pidfile ${pid_file} |
42 | eend $? |
43 | } |
44 | |
45 | |
46 | |
47 | 1.1 net-analyzer/zabbix/files/2.4/init.d/zabbix-proxy |
48 | |
49 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/zabbix/files/2.4/init.d/zabbix-proxy?rev=1.1&view=markup |
50 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/zabbix/files/2.4/init.d/zabbix-proxy?rev=1.1&content-type=text/plain |
51 | |
52 | Index: zabbix-proxy |
53 | =================================================================== |
54 | #!/sbin/runscript |
55 | # Copyright 1999-2014 Gentoo Foundation |
56 | # Distributed under the terms of the GNU General Public License v2 |
57 | # $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/files/2.4/init.d/zabbix-proxy,v 1.1 2014/10/29 22:38:37 mattm Exp $ |
58 | |
59 | pid_file="/run/zabbix/zabbix_proxy.pid" |
60 | |
61 | depend() { |
62 | need net |
63 | provide zabbix-proxy |
64 | } |
65 | |
66 | start_pre() { |
67 | checkpath -d -m 0775 -o zabbix:zabbix /run/zabbix |
68 | } |
69 | |
70 | start() { |
71 | ebegin "Starting Zabbix proxy" |
72 | start-stop-daemon --start --pidfile ${pid_file} \ |
73 | --user zabbix --group zabbix --exec /usr/sbin/zabbix_proxy -- -c /etc/zabbix/zabbix_proxy.conf |
74 | eend $? |
75 | } |
76 | |
77 | stop() { |
78 | ebegin "Stopping Zabbix proxy" |
79 | start-stop-daemon --stop --pidfile ${pid_file} |
80 | eend $? |
81 | } |
82 | |
83 | |
84 | |
85 | 1.1 net-analyzer/zabbix/files/2.4/init.d/zabbix-agentd |
86 | |
87 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/zabbix/files/2.4/init.d/zabbix-agentd?rev=1.1&view=markup |
88 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/zabbix/files/2.4/init.d/zabbix-agentd?rev=1.1&content-type=text/plain |
89 | |
90 | Index: zabbix-agentd |
91 | =================================================================== |
92 | #!/sbin/runscript |
93 | # Copyright 1999-2014 Gentoo Foundation |
94 | # Distributed under the terms of the GNU General Public License v2 |
95 | # $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/files/2.4/init.d/zabbix-agentd,v 1.1 2014/10/29 22:38:37 mattm Exp $ |
96 | |
97 | pid_file="/run/zabbix/zabbix_agentd.pid" |
98 | |
99 | depend() { |
100 | need net |
101 | provide zabbix-agent |
102 | use zabbix-server |
103 | } |
104 | |
105 | start_pre() { |
106 | checkpath -d -m 0775 -o zabbix:zabbix /run/zabbix |
107 | } |
108 | |
109 | start() { |
110 | ebegin "Starting Zabbix agent" |
111 | start-stop-daemon --start --pidfile ${pid_file} \ |
112 | --user zabbix --group zabbix --exec /usr/sbin/zabbix_agentd -- -c /etc/zabbix/zabbix_agentd.conf |
113 | eend $? |
114 | } |
115 | |
116 | stop() { |
117 | ebegin "Stopping Zabbix agent" |
118 | start-stop-daemon --stop --pidfile ${pid_file} |
119 | eend $? |
120 | } |