blob: f5163bb165ba50ff3ecb97b20bec67bcfc2c8038 (
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
27
28
|
#!/bin/sh
# $FreeBSD$
#
# PROVIDE: bbstored
# REQUIRE: NETWORKING
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable bbstored:
#
# bbstored_enable="YES"
. /etc/rc.subr
name="bbstored"
rcvar=bbstored_enable
load_rc_config $name
: ${bbstored_enable:="NO"}
: ${bbstored_flags:="%%PREFIX%%/etc/box/bbstored.conf"}
pidfile=${bbstored_pidfile:-"/var/run/bbstored.pid"}
command="%%PREFIX%%/sbin/bbstored"
extra_commands="reload"
run_rc_command "$1"
|