blob: 40f9911d9d3b3ecb079f80731984570807a80d4e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/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"
|