#!/sbin/runscript # $Header: /var/cvsroot/gentoo-x86/dev-perl/mogilefs-server/files/mogilefsd-init.d-2.16,v 1.2 2009/11/04 02:29:23 robbat2 Exp $ NAME="mogilefsd" BINARY="/usr/bin/mogilefsd" MOGILE_UID="mogile" MOGILE_GID="mogile" depend() { use net mysql postgresql after mysql postgresql } 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: