blob: da5ff24c9cf7c7d720eecc701406c5eca982d561 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/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=%%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"
|