blob: a0c509b159523ee46c98831555b6c2c10c07e129 (
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
34
|
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: jabber
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable rsyncd:
#
# jabber_enable="YES"
#
. %%RC_SUBR%%
name="jabber"
rcvar=`set_rcvar`
load_rc_config $name
required_files=%%JABBER_ETCDIR%%/jabber.xml
: ${jabber_enable="NO"}
: ${jabber_pidfile="%%JABBER_RUNDIR%%/jabber.pid"}
: ${jabber_flags="-B -c ${required_files}"}
: ${jabber_user="%%JABBER_USER%%"}
: ${jabber_group="%%JABBER_GROUP%%"}
command=%%PREFIX%%/bin/jabberd14
command_args="${jabberd_flags}"
pidfile=${jabberd_pidfile}
extra_commands="reload"
run_rc_command "$1"
|