blob: aaa804600f7f882098d0c45a9d85c107a4603f2d (
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
|
#!/sbin/runscript
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ganglia/files/gmetad-python.rc,v 1.1 2015/08/05 14:27:13 jsbronder Exp $
PIDFILE=/var/run/gmetad-python.pid
depend() {
need net
after ntp-client ntpd
}
start() {
ebegin "Starting GANGLIA gmetad-python: "
start-stop-daemon \
--start --quiet \
--exec /usr/bin/gmetad.py \
--pidfile ${PIDFILE} \
-- \
-p ${PIDFILE}
eend $? "Failed to start gmetad-python"
}
stop() {
ebegin "Shutting down GANGLIA gmetad-python: "
start-stop-daemon \
--stop --quiet \
--pidfile ${PIDFILE} \
--exec /usr/bin/gmetad.py
eend $? "Failed to stop gmetad-python"
}
|