mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-04 10:18:09 -04:00
31 lines
632 B
Bash
Executable File
31 lines
632 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $NetBSD: glusterd.sh,v 1.10 2012/10/19 04:15:21 manu Exp $
|
|
#
|
|
|
|
# PROVIDE: glusterd
|
|
# REQUIRE: rpcbind
|
|
# BEFORE: glusterfsd
|
|
|
|
$_rc_subr_loaded . /etc/rc.subr
|
|
|
|
glusterd_precmd()
|
|
{
|
|
test -d @VARBASE@/lib/glusterd && return
|
|
test -d @PREFIX@/etc/glusterd || return
|
|
mv @PREFIX@/etc/glusterd @VARBASE@/lib/glusterd && \
|
|
ln -s @VARBASE@/lib/glusterd @PREFIX@/etc/glusterd
|
|
}
|
|
|
|
name="glusterd"
|
|
rcvar=$name
|
|
command="@PREFIX@/sbin/${name}"
|
|
start_precmd="glusterd_precmd"
|
|
pidfile="/var/run/${name}.pid"
|
|
command_args="-p ${pidfile}"
|
|
required_files="@PREFIX@/etc/glusterfs/${name}.vol"
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|
|
|