#! /bin/sh
#
# $FreeBSD: ports/www/cocoon/files/cocoon.sh,v 1.3 2005/07/28 07:28:22 vs Exp $
#

# PROVIDE: cocoon

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

. /etc/rc.subr

name=cocoon
rcvar=`set_rcvar`

command=/usr/local/sbin/cocoonctl
command_args="$1"
pidfile=/usr/local/cocoon/cocoon.pid
procname=/usr/local/jdk1.4.2/bin/java

# set defaults

cocoon_enable=${cocoon_enable:-"NO"}
cocoon_user=${cocoon_user:-"www"}
cocoon_group=${cocoon_group:-"www"}

load_rc_config ${name}
run_rc_command "$1"
