blob: f8bde3c225cb474035c9f4f7db4de0d2002b0100 (
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
29
30
31
32
33
34
35
36
37
38
|
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: bnbt
# REQUIRE: LOGIN abi
# BEFORE: securelevel
# KEYWORD: shutdown
# Add the following line to /etc/rc.conf to enable `bnbt':
#
# bnbt_enable="YES"
# bnbt_flags="<set as needed>"
#
# See bnbt(1) for bnbt_flags
#
. /etc/rc.subr
name="bnbt"
rcvar=bnbt_enable
# path to your executable, might be libxec, bin, sbin, ...
command="%%PREFIX%%/bin/$name"
# extra required arguments
command_args="&"
# you can check for required_dirs and required_vars too, see rc.subr(8)
#
required_dirs="/var/log/$name"
# read settings, set default values
load_rc_config "$name"
: ${bnbt_enable="NO"}
run_rc_command "$1"
|