ports/sysutils/moosefs-master/files/mfsmaster.in
Wen Heping e97e3e1752 MooseFS is a fault tolerant, network distributed file system.
mfsmaster is a single machine managing the whole filesystem,
storing metadata for every file (information on size,
attributes and file location(s), including all information
about non-regular files, i.e. directories, sockets, pipes and
devices).

WWW:    http://www.moosefs.org/

Submitted by:	Chifeng Qu <chifeng@gmail.com> (via Email)
2010-04-07 02:54:15 +00:00

35 lines
499 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: mfsmaster
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable mfsmaster:
#
# mfsmaster_enable="YES"
#
. /etc/rc.subr
name=mfsmaster
rcvar=`set_rcvar`
command=%%PREFIX%%/sbin/${name}
stop_postcmd=stop_postcmd
stop_postcmd()
{
rm -f $pidfile
}
# set defaults
mfsmaster_enable=${mfsmaster_enable:-"NO"}
mfsmaster_flags=${mfsmaster_flags:-"-c %%PREFIX%%/etc/mfsmaster.cfg"}
load_rc_config $name
run_rc_command "$1"