summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Imhof <tantive@gentoo.org>2006-01-23 17:53:42 +0000
committerMichael Imhof <tantive@gentoo.org>2006-01-23 17:53:42 +0000
commitd39f527f14cb40a0574c99b018ae5e67d0baa298 (patch)
tree1f5d32018b3977b3520d66b0f19e105e3101df6e /sys-cluster/ganglia/files
parent~ia64 keyword, bug 119722. (diff)
downloadgentoo-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/files')
-rwxr-xr-xsys-cluster/ganglia/files/gmetad.rc17
-rwxr-xr-xsys-cluster/ganglia/files/gmond.rc17
2 files changed, 34 insertions, 0 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"
+}