summaryrefslogtreecommitdiff
path: root/sysutils/moosefs-master/files/mfsmaster.in
blob: fd1f47057cbfb991246cd86a37652be5d1add244 (plain) (blame)
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
32
33
34
35
#!/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=mfsmaster_enable

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"