#!/bin/sh
#
# $FreeBSD: head/devel/p5-Gearman-Server/files/gearmand-perl.in 340872 2014-01-24 00:14:07Z mat $
#

# 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"
