#!/bin/sh # # $FreeBSD: ports/devel/p5-Gearman-Server/files/gearmand.in,v 1.1 2007/09/08 08:17:15 clsung Exp $ # # PROVIDE: %%NAME%% # REQUIRE: DAEMON # Add the following line to /etc/rc.conf to enable `%%NAME%%': # #%%NAME%%_enable="YES" . "%%RC_SUBR%%" name="%%NAME%%" rcvar=`set_rcvar` command="%%PREFIX%%/bin/gearmand" command_interpreter="%%PREFIX%%/bin/perl" command_args="--daemon" # read configuration and set defaults load_rc_config "$name" : ${%%NAME%%_enable="NO"} run_rc_command "$1"