blob: 33b9285b1cb3193195aae7cd0bf6646035152427 (
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
|
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: plb
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable plb:
# plb_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable plb
#
. /etc/rc.subr
name="plb"
rcvar=`set_rcvar`
command="%%PREFIX%%/bin/plb"
pidfile="/var/run/plb.pid"
required_files=%%PREFIX%%/etc/plb.conf
load_rc_config $name
: ${plb_enable="NO"}
: ${plb_config="%%PREFIX%%/etc/plb.conf"}
command_args="-B -c ${plb_config} -g ${pidfile}"
run_rc_command "$1"
|