diff options
author | Michael Imhof <tantive@gentoo.org> | 2006-01-23 17:53:42 +0000 |
---|---|---|
committer | Michael Imhof <tantive@gentoo.org> | 2006-01-23 17:53:42 +0000 |
commit | d39f527f14cb40a0574c99b018ae5e67d0baa298 (patch) | |
tree | 1f5d32018b3977b3520d66b0f19e105e3101df6e /sys-cluster/ganglia | |
parent | ~ia64 keyword, bug 119722. (diff) | |
download | gentoo-2-d39f527f14cb40a0574c99b018ae5e67d0baa298.tar.gz gentoo-2-d39f527f14cb40a0574c99b018ae5e67d0baa298.tar.bz2 gentoo-2-d39f527f14cb40a0574c99b018ae5e67d0baa298.zip |
Added rc-scripts.
(Portage version: 2.1_pre3-r1)
Diffstat (limited to 'sys-cluster/ganglia')
-rwxr-xr-x | sys-cluster/ganglia/files/gmetad.rc | 17 | ||||
-rwxr-xr-x | sys-cluster/ganglia/files/gmond.rc | 17 | ||||
-rw-r--r-- | sys-cluster/ganglia/ganglia-3.0.2.ebuild | 8 |
3 files changed, 38 insertions, 4 deletions
diff --git a/sys-cluster/ganglia/files/gmetad.rc b/sys-cluster/ganglia/files/gmetad.rc new file mode 100755 index 000000000000..a9ae5c75a0f8 --- /dev/null +++ b/sys-cluster/ganglia/files/gmetad.rc @@ -0,0 +1,17 @@ +#!/sbin/runscript + +depend() { + need net +} + +start() { + ebegin "Starting GANGLIA gmetad: " + start-stop-daemon --start --quiet --exec /usr/sbin/gmetad + eend $? "Failed to start gmetad" +} + +stop() { + ebegin "Shutting down GANGLIA gmetad: " + start-stop-daemon --stop --quiet --exec /usr/sbin/gmetad + eend $? "Failed to stop gmetad" +} diff --git a/sys-cluster/ganglia/files/gmond.rc b/sys-cluster/ganglia/files/gmond.rc new file mode 100755 index 000000000000..82dbf8526790 --- /dev/null +++ b/sys-cluster/ganglia/files/gmond.rc @@ -0,0 +1,17 @@ +#!/sbin/runscript + +depend() { + need net +} + +start() { + ebegin "Starting GANGLIA gmond: " + start-stop-daemon --start --quiet --exec /usr/sbin/gmond + eend $? "Failed to start gmond" +} + +stop() { + ebegin "Shutting down GANGLIA gmnod: " + start-stop-daemon --stop --quiet --exec /usr/sbin/gmond + eend $? "Failed to stop gmond" +} diff --git a/sys-cluster/ganglia/ganglia-3.0.2.ebuild b/sys-cluster/ganglia/ganglia-3.0.2.ebuild index f16b278ba182..74174fc8787a 100644 --- a/sys-cluster/ganglia/ganglia-3.0.2.ebuild +++ b/sys-cluster/ganglia/ganglia-3.0.2.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2005 Gentoo Foundation +# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ganglia/ganglia-3.0.2.ebuild,v 1.2 2006/01/23 02:30:03 tantive Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ganglia/ganglia-3.0.2.ebuild,v 1.3 2006/01/23 17:53:42 tantive Exp $ DESCRIPTION="Ganglia is a scalable distributed monitoring system for high-performance computing systems such as clusters and Grids" HOMEPAGE="http://ganglia.sourceforge.net/" @@ -40,7 +40,7 @@ src_install() { keepdir /var/lib/ganglia/rrds fowners nobody:nobody /var/lib/ganglia/rrds exeinto /etc/init.d - newexe gmond/gmond.init gmond - newexe gmetad/gmetad.init gmetad + newexe ${FILESDIR}/gmond.rc gmond + newexe ${FILESDIR}/gmetad.rc gmetad } |