#!/bin/sh # $FreeBSD: head/sysutils/cmogstored/files/cmogstored.in 336098 2013-12-10 19:42:07Z trociny $ # # 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"