blob: b53c8adef9c902ca78a6f81e94ba26d49febe5ab (
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: bitlbee
# REQUIRE: LOGIN
# KEYWORD: shutdown
# Add the following lines to /etc/rc.conf to enable bitlbee:
# bitlbee_enable="YES"
# bitlbee_flags="<set as needed>"
. %%RC_SUBR%%
name="bitlbee"
rcvar=`set_rcvar`
load_rc_config $name
: ${bitlbee_enable="NO"}
: ${bitlbee_user="%%BITLBEEUSER%%"}
: ${bitlbee_config="%%PREFIX%%/etc/bitlbee/bitlbee.conf"}
required_files="${bitlbee_config}"
command="%%PREFIX%%/sbin/bitlbee"
command_args="-D -u ${bitlbee_user} -c ${bitlbee_config} ${bitlbee_flags}"
run_rc_command "$1"
|