495ccf41a6
(Somebody might also want to move the pid-file to /var/run in a future update)
35 lines
641 B
Bash
35 lines
641 B
Bash
#!/bin/sh
|
|
#
|
|
|
|
# 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`
|
|
|
|
command=%%PREFIX%%/sbin/jabberd
|
|
required_files=%%PREFIX%%/etc/${name}.xml
|
|
|
|
HOSTNAME=`/bin/hostname`
|
|
|
|
# set defaults
|
|
|
|
jabber_enable=${jabber_enable:-"NO"}
|
|
jabber_pidfile=${jabber_pidfile:-"/var/spool/jabber/${name}.pid"}
|
|
jabber_flags=${jabber_flags:-"-B -h ${HOSTNAME} -c ${required_files}"}
|
|
jabber_user=${jabber_user:-"jabber"}
|
|
jabber_group=${jabber_group:-"jabber"}
|
|
|
|
pidfile=${jabber_pidfile}
|
|
|
|
load_rc_config ${name}
|
|
run_rc_command "$1"
|