ports/databases/dbXML/files/dbxml.in
Greg Lewis bf72e81a1f . Update to 2.0.
. Modernise the port.

PR:		157634
Approved by:	Richard Stockley <rws@procopia.com> (MAINTAINER)
2011-06-07 05:39:08 +00:00

30 lines
524 B
Bash

#!/bin/sh
# $FreeBSD$
#
# 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="%%PORTNAME%%"
rcvar=${name}_enable
command=%%LOCALBASE%%/bin/dbxmlctl
pidfile=%%DBXML_HOME%%/config/${name}.pid
procname=java
load_rc_config ${name}
: ${dbxml_enable="NO"}
: ${dbxml_user="%%USER%%"}
run_rc_command "$1"