#!/bin/sh
#
# $FreeBSD: ports/net-im/jabber-pyicq/files/jabber-pyicq-transport.sh.in,v 1.8 2007/03/14 19:43:41 garga Exp $
#
# PROVIDE: jabber_pyicq
# REQUIRE: DAEMON DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
#
# Define these jabber_pyicq_* variables in one of these files:
#       /etc/rc.conf
#       /etc/rc.conf.local
#

. /etc/rc.subr

name="jabber_pyicq"
rcvar=`set_rcvar`

load_rc_config $name

: ${jabber_pyicq_enable="NO"}
: ${jabber_pyicq_dir="/usr/local/lib/jabber/pyicq"}
: ${jabber_pyicq_piddir="/var/run/pyicq"}
: ${jabber_pyicq_user="nobody"}

pidfile="${jabber_pyicq_piddir}/PyICQt.pid"
command_interpreter="/usr/local/bin/python2.3"
command="${jabber_pyicq_dir}/PyICQt.py"
command_args="-b -o pid=${pidfile}"

run_rc_command "$1"
