You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by bu...@apache.org on 2012/01/08 22:00:06 UTC

svn commit: r802110 - /websites/staging/openejb/trunk/content/unix-daemon.html

Author: buildbot
Date: Sun Jan  8 21:00:05 2012
New Revision: 802110

Log:
Staging update by buildbot

Modified:
    websites/staging/openejb/trunk/content/unix-daemon.html

Modified: websites/staging/openejb/trunk/content/unix-daemon.html
==============================================================================
--- websites/staging/openejb/trunk/content/unix-daemon.html (original)
+++ websites/staging/openejb/trunk/content/unix-daemon.html Sun Jan  8 21:00:05 2012
@@ -74,16 +74,15 @@
 
 <p>TomEE can be run as a daemon using the jsvc tool from the commons-daemon project. Source tarballs for jsvc are included with the TomEE binaries, and need to be compiled. Building jsvc requires a C ANSI compiler (such as GCC), GNU Autoconf, and a JDK.</p>
 
-<p>Before running the script, the JAVA_HOME environment variable should be set to the base path of the JDK. Alternately, when calling the ./configure script, the path of the JDK may be specified using the --with-java parameter, such as ./configure --with-java=/usr/java.</p>
+<p>Before running the script, the <code>JAVA_HOME</code> environment variable should be set to the base path of the JDK. Alternately, when calling the <code>./configure</code> script, the path of the JDK may be specified using the <code>--with-java</code> parameter, such as <code>./configure --with-java=/usr/java</code>.</p>
 
-<p>Using the following commands should result in a compiled jsvc binary, located in the $CATALINA_HOME/bin folder. This assumes that GNU TAR is used, and that CATALINA_HOME is an environment variable pointing to the base path of the TomEE installation.</p>
+<p>Using the following commands should result in a compiled jsvc binary, located in the <code>$TOMEE_HOME/bin</code> folder. This assumes that GNU TAR is used, and that <code>TOMEE_HOME</code> is an environment variable pointing to the base path of the TomEE installation.</p>
 
 <p>Please note that you should use the GNU make (gmake) instead of the native BSD make on FreeBSD systems.</p>
 
 <h1>Building</h1>
 
-<pre><code>tar xzvf apache-tomee-1.0.0-beta-2-webprofile.tar.gz
-cd apache-tomee-webprofile-1.0.0-beta-2/bin/
+<pre><code>cd $TOMEE_HOME/bin
 tar xzvf commons-daemon-native.tar.gz
 cd commons-daemon-1.0.7-native-src/unix/
 ./configure
@@ -92,15 +91,13 @@ chmod 755 jsvc
 mv jsvc ../..
 </code></pre>
 
+<p>Note that the <code>commons-daemon-1.0.7-native-src</code> directory may have a slightly different version number.</p>
+
 <h1>Starting (unix)</h1>
 
 <pre><code>cd $TOMEE_HOME
-sudo ./bin/jsvc \
-    -cp ./bin/bootstrap.jar:./bin/tomcat-juli.jar \
-    -javaagent:lib/openejb-javaagent.jar \
-    -outfile ./logs/catalina.out \
-    -errfile ./logs/catalina.err \
-    org.apache.catalina.startup.Bootstrap
+sudo ./bin/jsvc -cp ./bin/bootstrap.jar:./bin/tomcat-juli.jar -javaagent:lib/openejb-javaagent.jar \
+    -outfile ./logs/catalina.out -errfile ./logs/catalina.err org.apache.catalina.startup.Bootstrap
 </code></pre>
 
 <h1>Starting (osx)</h1>
@@ -109,26 +106,23 @@ sudo ./bin/jsvc \
 
 <pre><code>cd $TOMEE_HOME
 
-sudo arch -arch x86_64 ./bin/jsvc -jvm server \
-    -cp ./bin/bootstrap.jar:./bin/tomcat-juli.jar \
-    -javaagent:lib/openejb-javaagent.jar \
-    -outfile ./logs/catalina.out \
-    -errfile ./logs/catalina.err  \
+sudo arch -arch x86_64 ./bin/jsvc -jvm server -cp ./bin/bootstrap.jar:./bin/tomcat-juli.jar \
+    -javaagent:lib/openejb-javaagent.jar -outfile ./logs/catalina.out -errfile ./logs/catalina.err \
     org.apache.catalina.startup.Bootstrap
 </code></pre>
 
 <p>For a 32-bit JVM</p>
 
 <pre><code>cd $TOMEE_HOME
-
-sudo arch -arch i386 ./bin/jsvc -jvm server \
-    -cp ./bin/bootstrap.jar:./bin/tomcat-juli.jar \
-    -javaagent:lib/openejb-javaagent.jar \
-    -outfile ./logs/catalina.out \
-    -errfile ./logs/catalina.err  \
+sudo arch -arch i386 ./bin/jsvc -jvm server -cp ./bin/bootstrap.jar:./bin/tomcat-juli.jar \
+    -javaagent:lib/openejb-javaagent.jar -outfile ./logs/catalina.out -errfile ./logs/catalina.err \
     org.apache.catalina.startup.Bootstrap
 </code></pre>
 
+<h2>Note on formatting</h2>
+
+<p>Note that <code>\</code> at the end of each line is unix syntax to keep everything effectively as one line and one command.  The command is simply too long to show as one line on a fixed width html page.</p>
+