<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Re: install jBoss 5.0.1.GA on ubuntu 11.04 desktop
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/halfdomedog">Halfdome Dog</a> in <i>Beginner's Corner</i> - <a href="http://community.jboss.org/message/641613#641613">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Wolf-Dieter,</p><p>Thank you for the reply. I have checked line 31 of my script and found JBOSS_BIND_ADDR=${JBOSS_HOST:"-b 0.0.0.0"}. I am not quite sure where to add 'set-x' to my scipt so I just added the contents of my script below. Hopefully it helps.</p><p>==================================================================================================</p><p>#!/bin/sh</p><p>#</p><p><span># $Id: jboss_init_redhat.sh 81068 2008-11-14 15:14:35Z </span><a class="jive-link-email-small" href="mailto:dimitris@jboss.org" target="_blank">dimitris@jboss.org</a><span> $</span></p><p>#</p><p># JBoss Control Script</p><p>#</p><p># To use this script run it as root - it will switch to the specified user</p><p>#</p><p># Here is a little (and extremely primitive) startup/shutdown script</p><p># for RedHat systems. It assumes that JBoss lives in /usr/local/jboss,</p><p># it's run by user 'jboss' and JDK binaries are in /usr/local/jdk/bin.</p><p># All this can be changed in the script itself. </p><p>#</p><p># Either modify this script for your requirements or just ensure that</p><p># the following variables are set correctly before calling the script.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>#define where jboss is - this is the directory containing directories log, bin, conf etc</p><p>JBOSS_HOME=${JBOSS_HOME:-"/usr/local/jboss/jboss-5.1.0.GA"}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>#define the user under which jboss will run, or use 'RUNASIS' to run as the current user</p><p>JBOSS_USER=${JBOSS_USER:-"jboss"}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>#make sure java is in your path</p><p>JAVAPTH=${JAVAPTH:-"/usr/bin"}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>#configuration to use, usually one of 'minimal', 'default', 'all'</p><p>JBOSS_CONF=${JBOSS_CONF:-"default"}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>#if JBOSS_HOST specified, use -b to bind jboss services to that address</p><p>#JBOSS_BIND_ADDR=${JBOSS_HOST:+"-b $JBOSS_HOST"}</p><p>JBOSS_BIND_ADDR=${JBOSS_HOST:&#8221;-b 0.0.0.0&#8243;}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>#define the classpath for the shutdown class</p><p>JBOSSCP=${JBOSSCP:-"$JBOSS_HOME/bin/shutdown.jar:$JBOSS_HOME/client/jnet.jar"}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>#define the script to use to start jboss</p><p>JBOSSSH=${JBOSSSH:-"$JBOSS_HOME/bin/run.sh -c $JBOSS_CONF $JBOSS_BIND_ADDR"}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>if [ "$JBOSS_USER" = "RUNASIS" ]; then</p><p>&#160; SUBIT=""</p><p>else</p><p>&#160; SUBIT="su - $JBOSS_USER -c "</p><p>fi</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>if [ -n "$JBOSS_CONSOLE" -a ! -d "$JBOSS_CONSOLE" ]; then</p><p>&#160; # ensure the file exists</p><p>&#160; touch $JBOSS_CONSOLE</p><p>&#160; if [ ! -z "$SUBIT" ]; then</p><p>&#160;&#160;&#160; chown $JBOSS_USER $JBOSS_CONSOLE</p><p>&#160; fi </p><p>fi</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>if [ -n "$JBOSS_CONSOLE" -a ! -f "$JBOSS_CONSOLE" ]; then</p><p>&#160; echo "WARNING: location for saving console log invalid: $JBOSS_CONSOLE"</p><p>&#160; echo "WARNING: ignoring it and using /dev/null"</p><p>&#160; JBOSS_CONSOLE="/dev/null"</p><p>fi</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>#define what will be done with the console log</p><p>JBOSS_CONSOLE=${JBOSS_CONSOLE:-"/dev/null"}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>JBOSS_CMD_START="cd $JBOSS_HOME/bin; $JBOSSSH"</p><p>JBOSS_CMD_STOP=${JBOSS_CMD_STOP:-"java -classpath $JBOSSCP org.jboss.Shutdown --shutdown"}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>if [ -z "`echo $PATH | grep $JAVAPTH`" ]; then</p><p>&#160; export PATH=$PATH:$JAVAPTH</p><p>fi</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>if [ ! -d "$JBOSS_HOME" ]; then</p><p>&#160; echo JBOSS_HOME does not exist as a valid directory : $JBOSS_HOME</p><p>&#160; exit 1</p><p>fi</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>echo JBOSS_CMD_START = $JBOSS_CMD_START</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>case "$1" in</p><p>start)</p><p>&#160;&#160;&#160; cd $JBOSS_HOME/bin</p><p>&#160;&#160;&#160; if [ -z "$SUBIT" ]; then</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; eval $JBOSS_CMD_START &gt;${JBOSS_CONSOLE} 2&gt;&amp;1 &amp;</p><p>&#160;&#160;&#160; else</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; $SUBIT "$JBOSS_CMD_START &gt;${JBOSS_CONSOLE} 2&gt;&amp;1 &amp;" </p><p>&#160;&#160;&#160; fi</p><p>&#160;&#160;&#160; ;;</p><p>stop)</p><p>&#160;&#160;&#160; if [ -z "$SUBIT" ]; then</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; $JBOSS_CMD_STOP</p><p>&#160;&#160;&#160; else</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; $SUBIT "$JBOSS_CMD_STOP"</p><p>&#160;&#160;&#160; fi </p><p>&#160;&#160;&#160; ;;</p><p>restart)</p><p>&#160;&#160;&#160; $0 stop</p><p>&#160;&#160;&#160; $0 start</p><p>&#160;&#160;&#160; ;;</p><p>*)</p><p>&#160;&#160;&#160; echo "usage: $0 (start|stop|restart|help)"</p><p>esac</p><p>=========================================================================================================</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/641613#641613">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Beginner's Corner at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>