Added config files for zabbix 1.6.4 from bugs.gentoo.org
This commit is contained in:
22
net-analyzer/zabbix/files/1.6.4/init.d/zabbix-agentd
Normal file
22
net-analyzer/zabbix/files/1.6.4/init.d/zabbix-agentd
Normal file
@@ -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.4.6/init.d/zabbix-agentd,v 1.1 2008/07/23 15:47:30 wschlich 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 $?
|
||||
}
|
||||
21
net-analyzer/zabbix/files/1.6.4/init.d/zabbix-server
Normal file
21
net-analyzer/zabbix/files/1.6.4/init.d/zabbix-server
Normal file
@@ -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.4.6/init.d/zabbix-server,v 1.1 2008/07/23 15:47:30 wschlich 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 $?
|
||||
}
|
||||
Reference in New Issue
Block a user