#!/bin/sh # # $Id$ # # PROVIDE: glusterfsd # REQUIRE: DAEMON # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf to enable glusterfsd: # glusterfsd_enable (bool): Set it to "YES" to enable glusterfsd. # Default is "NO". # glusterfsd_conf (path): Set full path to config file. # Default is "/usr/local/etc/glusterfs/glusterfsd.vol". # glusterfsd_flags (str): Flags passed to glusterfsd-script on startup. # Default is "-p ${glusterfsd_pidfile} -f ${glusterfsd_conf}". # . /etc/rc.subr name="glusterfsd" rcvar=${name}_enable load_rc_config $name glusterfsd_enable=${glusterfsd_enable:-"NO"} glusterfsd_conf=${glusterfsd_conf:-"/usr/local/etc/glusterfs/glusterfsd.vol"} glusterfsd_pidfile="/var/run/${name}.pid" glusterfsd_flags=${glusterfsd_flags:-""} command=/usr/local/sbin/glusterfsd command_args="-f ${glusterfsd_conf} -p ${glusterfsd_pidfile} ${glusterfsd_flags}" pidfile=${glusterfsd_pidfile} required_files=${glusterfsd_conf} run_rc_command "$1"