#!/bin/sh # # $FreeBSD$ # # PROVIDE: kumofs-manager # REQUIRE: DAEMON # BEFORE: kumofs-server # KEYWORD: shutdown . %%RC_SUBR%% name=kumofs_manager rcvar=`set_rcvar` load_rc_config $name # Set defaults : ${kumofs_manager_enable:="NO"} : ${kumofs_manager_local_addr:=""} : ${kumofs_manager_partner_addr:=""} : ${kumofs_manager_extra_flags:=""} : ${kumofs_manager_pid:="/var/run/kumofs/manager.pid"} : ${kumofs_manager_flags:="-l ${kumofs_manager_local_addr} -p ${kumofs_manager_partner_addr} -d ${kumofs_manager_pid} -o /var/log/kumofs/manager.log ${kumofs_manager_extra_flags}"} : ${kumofs_manager_user:="kumofs"} command=%%PREFIX%%/bin/kumo-manager run_rc_command "$1"