]> CyberLeo.Net >> Repos - CDN/cdn-ports-overlay.git/blob - cdn/ports/net-im/mu-conference/files/mu-conference.in
net/tinyfugue-unicode: Fix build errors
[CDN/cdn-ports-overlay.git] / cdn / ports / net-im / mu-conference / files / mu-conference.in
1 #!/bin/sh
2 #
3 # $FreeBSD$
4
5 # PROVIDE: mu_conference
6 # REQUIRE: %%JABBER_REQUIRE%%
7 # KEYWORD: shutdown
8
9 # Define these mu_conference_* variables in one of these files:
10 #       /etc/rc.conf
11 #       /etc/rc.conf.local
12 #
13 # DO NOT CHANGE THESE DEFAULT VALUES HERE
14 #
15 # mu_conference_config : path
16 #   Path to the configuration file ("%%PREFIX%%/etc/muc.xml", the default).
17 #
18 # mu_conference_enable : bool
19 #   Enable ("YES") or disable ("NO", the default) this startup script.
20 #
21
22 . /etc/rc.subr
23
24 name="mu_conference"
25 rcvar=mu_conference_enable
26
27 command="%%PREFIX%%/bin/mu-conference"
28
29 stop_postcmd="mu_conference_stop_post"
30
31 mu_conference_stop_post () {
32         rm -f ${pidfile}
33 }
34
35 load_rc_config $name
36
37 : ${mu_conference_config="%%PREFIX%%/etc/muc.xml"}
38 : ${mu_conference_enable="NO"}
39 : ${mu_conference_user="%%JABBER_USER%%"}
40 : ${mu_conference_pidfile="%%JABBER_PIDDIR%%/mu-conference.pid"}
41
42 pidfile=${mu_conference_pidfile}
43 command_args="-c ${mu_conference_config} -B >/dev/null 2>&1"
44
45 run_rc_command "$1"