#!/bin/sh

# $FreeBSD: ports/databases/dbXML/files/dbxml.in,v 1.3 2012/11/17 05:55:06 svnexp Exp $
#
# PROVIDE: dbxml
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# dbxml_enable (bool):   Set to NO by default.
#                        Set it to YES to enable dbxml.
#

. /etc/rc.subr

name="dbxml"
rcvar=dbxml_enable

command=/usr/local/bin/dbxmlctl
pidfile=/usr/local/share/java/dbXML/config/${name}.pid
procname=java

load_rc_config ${name}

: ${dbxml_enable="NO"}
: ${dbxml_user="dbxml"}

run_rc_command "$1"
