freebsd-ports/devel/p5-Gearman-Server/files/gearmand-perl.in
2021-04-06 16:31:13 +02:00

23 lines
403 B
Bash

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