ports/sysutils/cmogstored/files/cmogstored.in
Mikolaj Golub 38ea77033f cmogstored: Alternative mogstored implementation for MogileFS [NEW PORT]
cmogstored is an alternative implementation of the "mogstored" storage
component of MogileFS.  cmogstored is implemented in C and does not
use Perl at runtime.  cmogstored is the only component you need to
install on a MogileFS storage node.

Approved by:	bdrewery (mentor)
2013-12-10 19:42:07 +00:00

24 lines
408 B
Bash

#!/bin/sh
# $FreeBSD$
#
# PROVIDE: cmogstored
# REQUIRE: LOGIN cleanvar
# KEYWORD: shutdown
. /etc/rc.subr
name=cmogstored
rcvar=cmogstored_enable
load_rc_config cmogstored
: ${cmogstored_enable:="NO"}
: ${cmogstored_config:="%%PREFIX%%/etc/mogstored.conf"}
required_files="${cmogstored_config}"
command="%%PREFIX%%/sbin/${name}"
command_args="--config='${cmogstored_config}' -d"
run_rc_command "$1"