#!/bin/sh
#
# $NetBSD: mcollectived.sh,v 1.1 2012/08/12 09:15:57 imil Exp $
#
# PROVIDE: mcollectived
# REQUIRE: DAEMON

. /etc/rc.subr

name="mcollectived"
rcvar=${name}
command="/usr/pkg/sbin/mcollectived"
required_files="/usr/pkg/etc/mcollective/mcollective/server.cfg"
pidfile="/var/run/mcollectived.pid"
command_args="-p ${pidfile}"
procname="/usr/pkg/bin/ruby27"

load_rc_config $name
run_rc_command "$1"
