aboutsummaryrefslogtreecommitdiff
path: root/net/dbeacon/files/dbeacon.in
blob: 6f29bab717111224182b98b61b03a3f812bb3527 (plain) (blame)
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
27
28
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: dbeacon
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable dbeacon.
#
# dbeacon_enable="YES"
# dbeacon_flags=""	Extra flags passed to start command.
#
# See dbeacon(1) for flags.

dbeacon_enable=${dbeacon_enable-"NO"}
dbeacon_flags=${dbeacon_flags-""}

. %%RC_SUBR%%

name="dbeacon"
rcvar=`set_rcvar`

command="%%PREFIX%%/bin/${name}"

load_rc_config $name

run_rc_command "$1"