#!/bin/sh
#
# Startup script for JIT ICQ transport.
#
# $FreeBSD: ports/net-im/jit/files/jabber_jit.sh.in,v 1.1 2006/03/26 20:24:00 pav Exp $
#

# PROVIDE: jabber_jit
# REQUIRE: DAEMON

# Define these jabber_jit_* variables in one of these files:
#       /etc/rc.conf
#       /etc/rc.conf.local
#       /etc/rc.conf.d/jabber_jit
#
# jabber_jit_enable : bool
#   Enable the transport ("YES") or not ("NO", the default).
#

. /etc/rc.subr

name="jabber_jit"
rcvar=`set_rcvar`

command="/usr/local/sbin/jit"
command_args="-c /usr/local/etc/jabber-icq.xml -d"
required_files="/usr/local/etc/jabber-icq.xml"

load_rc_config "$name"

: ${jabber_jit_enable="NO"}
: ${jabber_jit_user="jabber"}

run_rc_command "$1"
