blob: d9f67bb8fee6f35af6f565bf8c147a5a2e2a92ec (
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: FreeBSD shutdown
# Add the following line to /etc/rc.conf to enable `bnbt':
#
#bnbt_enable="YES"
#
# See bnbt(1) for bnbt_flags
#
. "%%RC_SUBR%%"
name="bnbt"
rcvar=`set_rcvar`
# 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"}
: ${bnbt_flags=""}
run_rc_command "$1"
|