aboutsummaryrefslogtreecommitdiffstats
path: root/main/zabbix/zabbix-server.initd
blob: a661cd233d25b94798a8c354e0e3d8c0a65eb436 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 $?
}