ports/sysutils/moosefs2-master/files/mfsmaster.in
Mark Felder 22d6c5c36e Move moosefs ports to moosefs2
This makes room for moosefs3-* and moosefs4-* ports. We do not want end
users blindly upgrading moosefs across major and have issues or data
loss.

PR:		210306
2016-07-07 20:58:23 +00:00

31 lines
507 B
Bash

#!/bin/sh
# $FreeBSD$
# PROVIDE: mfsmaster
# REQUIRE: DAEMON
# KEYWORD: nostart shutdown
#
# Add the following lines to /etc/rc.conf to enable mfsmaster:
#
# mfsmaster_enable="YES"
#
. /etc/rc.subr
name=mfsmaster
rcvar=mfsmaster_enable
config_file=%%PREFIX%%/etc/mfs/${name}.cfg
required_files=${config_file}
command=%%PREFIX%%/sbin/${name}
pid_file=%%MFS_WORKDIR%%/mfs/.${name}.lock
command_args="-c $config_file"
load_rc_config $name
# set defaults
: ${mfsmaster_enable="NO"}
run_rc_command "$1"