1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00
freebsd-ports/devel/p5-Gearman-Server/files/gearmand-perl.in
Pav Lucistnik b657b4b1f3 - Change rc script name to avoid conflict with devel/gearmand
PR:		ports/144570
Submitted by:	Vick Khera <vivek@khera.org> (maintainer)
2010-04-02 13:53:57 +00:00

27 lines
415 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: %%NAME%%
# REQUIRE: DAEMON
# Add the following line to /etc/rc.conf to enable `%%NAME%%':
#
#%%NAME%%_enable="YES"
. /etc/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"