summaryrefslogtreecommitdiffstats
path: root/misc/init.d/gentoo/zabbix-server
blob: 61ffc87300fc5010c09015d05cc9c394a9126356 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/sbin/runscript
#
# Zabbix server start/stop script.
#
# Written by A.Tophofen
NAME=zabbix_server
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/home/zabbix/bin
DAEMON=/home/zabbix/bin/${NAME}
DESC="Zabbix 1.4"
PID=/home/zabbix/lock/$NAME.pid



opts="${opts} reload"


depend() {
		need net
}

start() {
	ebegin "Starting $DESC: $NAME"
	start-stop-daemon --start --pidfile $PID \
		--exec $DAEMON
	eend
}
stop() {
	ebegin "Stopping $DESC: $NAME"
	start-stop-daemon  --stop  --pidfile $PID \
		--exec $DAEMON
	eend
}