calls to machines that are better suited to do work, to do work in parallel, to load balance lots of function calls, or to call functions between languages. This is the server daemon component. The bridge between workers (clients who can do work) and callers (clients who want work done). You should run several of these, at least two, for both load balancing and high availability. WWW: http://www.danga.com/gearman/ PR: ports/110878 Submitted by: Vivek Khera <vivek at khera.org>
26 lines
514 B
Bash
26 lines
514 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD: /tmp/pcvs/ports/devel/p5-gearmand/files/Attic/gearmand.sh.in,v 1.1 2007-03-27 07:15:30 miwi 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"
|