Line 0
Link Here
|
|
|
1 |
#!/bin/sh |
2 |
|
3 |
# Start or stop jabber's mu-conference |
4 |
# $FreeBSD$ |
5 |
|
6 |
# PROVIDE: mu_conference |
7 |
# REQUIRE: DAEMON jabberd |
8 |
# BEFORE: LOGIN |
9 |
# KEYWORD: FreeBSD shutdown |
10 |
# |
11 |
# Define these mu_conference_* variables in one of these files: |
12 |
# /etc/rc.conf |
13 |
# /etc/rc.conf.local |
14 |
# /etc/rc.conf.d/mu_conference |
15 |
# |
16 |
# DO NOT CHANGE THESE DEFAULT VALUES HERE |
17 |
# |
18 |
# mu_conference_config : path |
19 |
# Path to the configuration file ("/usr/local/etc/muc.xml", the default). |
20 |
# |
21 |
# mu_conference_enable : bool |
22 |
# Enable ("YES") or disable ("NO", the default) this startup script. |
23 |
# |
24 |
|
25 |
. /etc/rc.subr |
26 |
|
27 |
name="mu_conference" |
28 |
rcvar=`set_rcvar` |
29 |
command="/usr/local/bin/mu-conference" |
30 |
pidfile="/var/jabberd/pid/mu-conference.pid" |
31 |
|
32 |
stop_postcmd="mu_conference_stop_post" |
33 |
|
34 |
mu_conference_stop_post () { |
35 |
rm -f ${pidfile} |
36 |
} |
37 |
|
38 |
load_rc_config $name |
39 |
|
40 |
: ${mu_conference_config="/usr/local/etc/muc.xml"} |
41 |
: ${mu_conference_enable="NO"} |
42 |
: ${mu_conference_user="jabber"} |
43 |
|
44 |
command_args="-c $mu_conference_config -B" |
45 |
|
46 |
run_rc_command "$1" |
47 |
|
48 |
|