Add ebuild for ganglia-3.7.2, the latest release.
This commit is contained in:
parent
8c60c70ca8
commit
f5a9aaa642
8 changed files with 268 additions and 0 deletions
30
sys-cluster/ganglia/files/gmetad-python.rc
Normal file
30
sys-cluster/ganglia/files/gmetad-python.rc
Normal file
|
@ -0,0 +1,30 @@
|
|||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
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"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue