#!/bin/sh # # $FreeBSD: ports/devel/p5-Gearman-Server/files/gearmand.in,v 1.1 2007/09/08 08:17:15 clsung Exp $ # # PROVIDE: gearmand # REQUIRE: DAEMON # Add the following line to /etc/rc.conf to enable `gearmand': # #gearmand_enable="YES" . "/etc/rc.subr" name="gearmand" rcvar=`set_rcvar` 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"