#!/bin/sh

# $FreeBSD: databases/dbXML/files/dbxml.in 300896 2012-07-14 13:54:48Z beat $
#
# 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"
