#!/bin/sh
#
# $FreeBSD: ports/www/resin2/files/resin.sh.in,v 1.3 2005/02/24 22:27:53 hq Exp $
#

# PROVIDE: resin2

#
# Add the following line to /etc/rc.conf to enable resin2:
#
# resin2_enable="YES"
#

. /etc/rc.subr

name=resin2
rcvar=`set_rcvar`

command=/usr/local/sbin/resin2ctl
command_args="$1"
pidfile=/usr/local/resin2/resin2.pid
procname=/usr/local/diablo-jdk1.5.0/bin/java

# set defaults

resin2_enable=${resin2_enable:-"NO"}
resin2_user=${resin2_user:-"www"}
resin2_group=${resin2_group:-"www"}

load_rc_config ${name}
run_rc_command "$1"
