33 lines
586 B
Bash
33 lines
586 B
Bash
#!/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"
|