aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-fs/glusterfs/files/glusterfs.initd')
-rw-r--r--net-fs/glusterfs/files/glusterfs.initd23
1 files changed, 23 insertions, 0 deletions
diff --git a/net-fs/glusterfs/files/glusterfs.initd b/net-fs/glusterfs/files/glusterfs.initd
new file mode 100644
index 000000000..d26e53371
--- /dev/null
+++ b/net-fs/glusterfs/files/glusterfs.initd
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ use net dns
+}
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start --exec /usr/sbin/glusterfsd -- \
+ --volfile=/etc/glusterfs/${SVCNAME}.vol \
+ --pid-file=/var/run/${SVCNAME}.pid \
+ --log-file=/var/log/glusterfs/${SVCNAME}.log \
+ ${GLUSTERFSD_MOUNTPOINT}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop --pidfile /var/run/${SVCNAME}.pid
+ eend $?
+}