summaryrefslogtreecommitdiffstats
path: root/extras/init.d/glusterd-FreeBSD.in
blob: 21c3da726242ecfebe639701090fa204ccef8b42 (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
#!/bin/sh
#
# $FreeBSD$
#

# PROVIDE: glusterd

. /etc/rc.subr

name="glusterd"
rcvar=`set_rcvar`
command=@prefix@/sbin/${name}
pidfile="/var/run/${name}.pid"
glusterd_flags="-p /var/run/${name}.pid"
start_precmd="glusterd_prestart"

glusterd_prestart()
{
    mkdir -p @GLUSTERD_WORKDIR@ /var/log/glusterfs
    return 0
}

load_rc_config $name
run_rc_command "$1"