blob: a74e8c51ba623d11e1ec75bb87fa6e8b8c46b4ac (
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
|
#!/bin/sh
# PROVIDE: glusterd
# BEFORE: mountlate
# REQUIRE: NETWORKING
# KEYWORD: shutdown
. /etc/rc.subr
name="glusterd"
rcvar="${name}_enable"
start_precmd="glusterd_prestart"
glusterd_prestart()
{
mkdir -p /var/db/glusterd /var/log/glusterfs
}
load_rc_config $name
: ${glusterd_program:="%%PREFIX%%/sbin/$name"}
: ${glusterd_pidfile:="/var/run/${name}.pid"}
pidfile="$glusterd_pidfile"
glusterd_flags="--pid-file=\"${glusterd_pidfile}\" ${glusterd_flags}"
run_rc_command "$1"
|