#!/bin/sh

# PROVIDE: gearmand
# REQUIRE: DAEMON

# Add the following line to /etc/rc.conf to enable `gearmand':
#
#gearmand_enable="YES"

. /etc/rc.subr

name="gearmand"
rcvar=gearmand_enable

command="/usr/local/bin/gearmand"
command_interpreter="/usr/local/bin/perl"
command_args="--daemon"

# read configuration and set defaults
load_rc_config "$name"
: ${gearmand_enable="NO"}

run_rc_command "$1"
