mirror of
https://git.freebsd.org/ports.git
synced 2025-06-20 20:20:30 -04:00
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)
35 lines
499 B
Bash
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"
|