compared with
Current by Jonathan S. Fisher
on Jun 25, 2013 18:38.

(show comment)
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (1)

View Page History
</service_bundle>
{code}

h1. TomEE / Tomcat

{code:xml|title=TomEE or Tomcat}
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<service_bundle
type="manifest"
name="tomee">
<service
name="application/servers/tomee"
type="service"
version="1">
<create_default_instance enabled="false" />
<single_instance />
<exec_method
type="method"
name="start"
exec="/opt/local/java/tomee/bin/startup.sh"
timeout_seconds="30">
<method_context working_directory="/opt/local/java/tomee/bin">
<method_credential
user="tomee"
group="tomee"
privileges="BASIC,PRIV_NET_PRIVADDR" />
<method_environment>
<envvar
name="CATALINA_BASE"
value="/opt/local/java/tomee" />
<envvar
name="CATALINA_HOME"
value="/opt/local/java/tomee" />
<envvar
name="JAVA_HOME"
value="/opt/local/java/jdk7" />
</method_environment>
</method_context>
</exec_method>
<exec_method
type="method"
name="stop"
exec="/opt/local/java/tomee/bin/shutdown.sh"
timeout_seconds="60">
<method_context working_directory="/opt/local/java/tomee/bin">
<method_credential
user="tomee"
group="tomee" />
<method_environment>
<envvar
name="CATALINA_BASE"
value="/opt/local/java/tomee" />
<envvar
name="CATALINA_HOME"
value="/opt/local/java/tomee" />
<envvar
name="JAVA_HOME"
value="/opt/local/java/jdk7" />
</method_environment>
</method_context>
</exec_method>
<stability value="Unstable" />
<template>
<common_name>
<loctext xml:lang="C">tomee</loctext>
</common_name>
</template>
</service>
</service_bundle>
{code}