summaryrefslogtreecommitdiff
path: root/java/jboss5/files/jboss5.sh.in
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2007-03-28 05:47:17 +0000
committerXin LI <delphij@FreeBSD.org>2007-03-28 05:47:17 +0000
commit789e9ecac7b7596a03747ebd13fad0e5e8fc4cf5 (patch)
treef4d90cbcf844b3e9447453b2f221bb5c192ea4a6 /java/jboss5/files/jboss5.sh.in
parentlang/gdc: update to 0.23 (diff)
New port: jboss5
JBoss AS 5 GA will be Java EE 5 certified and will include the following core technologies. * JBoss Microcontainer - POJO based microcontainer removing the dependency on JMX * EJB 3.0 - Fully certified as part of the Java EE 5 compliant JBoss AS 5 * Hibernate 3.2 - JPA certified * JBoss Messaging 1.2 - the next generation messaging platform from JBoss with HA features. * JBoss WebServices 2.0 - new custom built JAX-WS compliant WebServices stack. * JBoss Seam 1.1 - a powerful new application framework to build next generation Web 2.0 applications by unifying and integrating popular service oriented architecture (SOA) technologies Submitted by: Nemo Liu <nemoliu gmail com> PR: ports/110163 Repocopy by: marcus
Notes
Notes: svn path=/head/; revision=188629
Diffstat (limited to 'java/jboss5/files/jboss5.sh.in')
-rw-r--r--java/jboss5/files/jboss5.sh.in61
1 files changed, 61 insertions, 0 deletions
diff --git a/java/jboss5/files/jboss5.sh.in b/java/jboss5/files/jboss5.sh.in
new file mode 100644
index 000000000000..157a5947f826
--- /dev/null
+++ b/java/jboss5/files/jboss5.sh.in
@@ -0,0 +1,61 @@
+#!/bin/sh
+#
+# %%APP_TITLE%% startup script.
+#
+# $FreeBSD$
+#
+
+# PROVIDE: %%APP_SHORTNAME%%
+# REQUIRE: NETWORKING SERVERS
+
+# Add the following lines to /etc/rc.conf to enable %%APP_SHORTNAME%%:
+# %%APP_SHORTNAME%%_enable (bool): Set to "NO" by default.
+# Set it to "YES" to enable %%APP_SHORTNAME%%
+# %%APP_SHORTNAME%%_flags (str): Set to "-server" by default.
+# Extra JVM flags.
+# %%APP_SHORTNAME%%_config (str): Set to "" by default
+# JBoss server config, eg {all|default|minimal|standard}
+#
+. %%RC_SUBR%%
+
+name="%%APP_SHORTNAME%%"
+rcvar=`set_rcvar`
+
+start_cmd="%%APP_SHORTNAME%%_start"
+restart_cmd="%%APP_SHORTNAME%%_restart"
+pidfile="%%PID_FILE%%"
+procname="%%JAVA%%"
+
+[ -z "$%%APP_SHORTNAME%%_enable" ] && %%APP_SHORTNAME%%_enable="NO"
+[ -z "$%%APP_SHORTNAME%%_flags" ] && %%APP_SHORTNAME%%_flags="-server"
+[ -z "$%%APP_SHORTNAME%%_config" ] && %%APP_SHORTNAME%%_config=""
+
+%%APP_SHORTNAME%%_start ()
+{
+ checkyesno %%APP_SHORTNAME%%_enable &&
+ {
+ if [ ! -f ${pidfile} ]
+ then
+ touch ${pidfile}
+ chown %%USER%%:%%GROUP%% ${pidfile}
+ fi
+
+ echo "Starting %%APP_SHORTNAME%%."
+ %%CONTROL_SCRIPT%% -q ${%%APP_SHORTNAME%%_flags} ${%%APP_SHORTNAME%%_configflag} ${%%APP_SHORTNAME%%_config} start
+ }
+}
+
+%%APP_SHORTNAME%%_restart ()
+{
+ checkyesno %%APP_SHORTNAME%%_enable &&
+ {
+ echo "Restarting %%APP_SHORTNAME%%."
+ %%CONTROL_SCRIPT%% -q ${%%APP_SHORTNAME%%_flags} ${%%APP_SHORTNAME%%_configflag} ${%%APP_SHORTNAME%%_config} restart
+ }
+}
+
+load_rc_config $name
+
+[ -n "${%%APP_SHORTNAME%%_config}" ] && %%APP_SHORTNAME%%_configflag="-config"
+
+run_rc_command "$1"