summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-perl/mogilefs-server/files/mogstored-init.d-2.66')
-rw-r--r--dev-perl/mogilefs-server/files/mogstored-init.d-2.6630
1 files changed, 30 insertions, 0 deletions
diff --git a/dev-perl/mogilefs-server/files/mogstored-init.d-2.66 b/dev-perl/mogilefs-server/files/mogstored-init.d-2.66
new file mode 100644
index 000000000000..5f48de51b751
--- /dev/null
+++ b/dev-perl/mogilefs-server/files/mogstored-init.d-2.66
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+# $Id$
+
+NAME="mogstored"
+BINARY="/usr/bin/mogstored"
+MOGILE_UID="mogile"
+MOGILE_GID="mogile"
+
+depend() {
+ use net
+ before mogilefsd
+ need mogautomount
+}
+
+start() {
+ install -o $MOGILE_UID -g $MOGILE_GID -d $(dirname $PIDFILE)
+ ebegin "Starting $NAME"
+ start-stop-daemon --start --quiet \
+ --pidfile=${PIDFILE} --exec ${BINARY} \
+ -- --daemonize --pidfile=${PIDFILE} ${MOGSTORED_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping $NAME"
+ start-stop-daemon --stop --quiet --pidfile="${PIDFILE}"
+ eend $?
+}
+
+# vim: ft=gentoo-init-d: