mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-10 07:04:03 +00:00
b657b4b1f3
PR: ports/144570 Submitted by: Vick Khera <vivek@khera.org> (maintainer)
27 lines
415 B
Bash
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"
|