freebsd-ports/net/glusterfs/files/glusterd.in
2021-04-06 16:31:13 +02:00

26 lines
488 B
Bash

#!/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"