diff options
Diffstat (limited to 'dev-perl/mogilefs-server/files/mogilefsd-init.d-2.16')
-rw-r--r-- | dev-perl/mogilefs-server/files/mogilefsd-init.d-2.16 | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-perl/mogilefs-server/files/mogilefsd-init.d-2.16 b/dev-perl/mogilefs-server/files/mogilefsd-init.d-2.16 new file mode 100644 index 0000000..6a36e7d --- /dev/null +++ b/dev-perl/mogilefs-server/files/mogilefsd-init.d-2.16 @@ -0,0 +1,28 @@ +#!/sbin/runscript +# $Header: /var/cvsroot/gentoo-x86/dev-perl/mogilefs-server/files/mogilefsd-init.d-2.16,v 1.1 2007/05/16 11:11:17 robbat2 Exp $ + +NAME="mogilefsd" +BINARY="/usr/bin/mogilefsd" +MOGILE_UID="mogile" +MOGILE_GID="mogile" + +depend() { + use net + after mysql +} + +start() { + ebegin "Starting $NAME" + start-stop-daemon --chuid ${MOGILE_UID}:${MOGILE_GID} --start \ + --pidfile ${PIDFILE} --exec ${BINARY} \ + -- ${MOGILEFSD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping $NAME" + start-stop-daemon --stop --quiet --pidfile="${PIDFILE}" + eend $? +} + +# vim: ft=gentoo-init-d: |