blob: 89e1ae9e4b371b743faa828ce99004f2652d2f88 (
plain)
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: 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=%%PREFIX%%/etc/${name}.xml
: ${jabber_enable="NO"}
: ${jabber_pidfile="/var/spool/jabber/${name}.pid"}
: ${jabber_flags="-B -h `/bin/hostname` -c ${required_files}"}
: ${jabber_user="jabber"}
: ${jabber_group="jabber"}
command=%%PREFIX%%/sbin/jabberd
command_args="${jabber_flags}"
pidfile=${jabber_pidfile}
run_rc_command "$1"
|