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