summaryrefslogtreecommitdiff
path: root/databases/dbXML/files/dbxml.in
diff options
context:
space:
mode:
Diffstat (limited to 'databases/dbXML/files/dbxml.in')
-rw-r--r--databases/dbXML/files/dbxml.in30
1 files changed, 30 insertions, 0 deletions
diff --git a/databases/dbXML/files/dbxml.in b/databases/dbXML/files/dbxml.in
new file mode 100644
index 000000000000..8f5b98abf2a3
--- /dev/null
+++ b/databases/dbXML/files/dbxml.in
@@ -0,0 +1,30 @@
+#!/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"