summaryrefslogtreecommitdiffstats
path: root/extras/init.d/glusterd-FreeBSD.in
blob: 5eed6360a890f45b46583db7fca8ac71b2efe185 (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 /var/lib/glusterd /var/log/glusterfs
    return 0
}

load_rc_config $name
run_rc_command "$1"