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

. /etc/rc.subr

name="jabber_pymsn"
rcvar=`set_rcvar`

load_rc_config $name

: ${jabber_pymsn_enable="NO"}
: ${jabber_pymsn_dir="/usr/local/lib/jabber/pymsn"}
: ${jabber_pymsn_piddir="/var/run/pymsn"}
: ${jabber_pymsn_user="nobody"}

pidfile="${jabber_pymsn_piddir}/PyMSNt.pid"
command_interpreter="/usr/local/bin/python2.3"
command_args="-p ${pidfile}"
command="${jabber_pymsn_dir}/PyMSNt.py"

run_rc_command "$1"
