Changeset View
Changeset View
Standalone View
Standalone View
sysutils/lizardfs/files/mfsmaster.in
- This file was added.
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
#!/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=/var/mfs/.${name}.lock | |||||
command_args="-c $config_file" | |||||
load_rc_config $name | |||||
# set defaults | |||||
: ${mfsmaster_enable="NO"} | |||||
run_rc_command "$1" |