Re: Creating an rc.d script for Jboss Web

2007-05-05 Thread Charles Mason

It sounds like you haven't used the ports version of JBoss.  The ports
versions may have prewritten scripts that would do what you want:

/usr/ports/java/jboss2
/usr/ports/java/jboss3
/usr/ports/java/jboss4
/usr/ports/java/jboss5


Jboss Web is not the same as the Jboss application server. Jboss Web
is a fairly new is a lite wight servlet server like Tomcat. Jboss
application server is a full J2EE application server which uses
tomcats web serving engine as a front end.

Jboss Web is a Tomcat replacement not an application server
replacement. Its basically an optimised version of Tomcat. Where all
the static file serving java code has been replaced with extremely
efficient native code. Hence why it needs to be rebuilt for each
platform. Basically it uses Tomcat derived code for serving sevlets
and Apache derived code for when a static file is requested. Hence
there's no need to front Tomcat with Apache any more.

There is no version of Jboss Web in the ports collection. I was
thinking it might be possible to extract the rc.d from the the Jboss 4
port, although I am not quite sure where the ports scripts store there
rc.d scripts.

Charlie
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Creating an rc.d script for Jboss Web

2007-05-05 Thread Warren Block

On Sat, 5 May 2007, Charles Mason wrote:


There is no version of Jboss Web in the ports collection. I was
thinking it might be possible to extract the rc.d from the the Jboss 4
port, although I am not quite sure where the ports scripts store there
rc.d scripts.


There's a template for a startup script in the files directory:

/usr/ports/java/jboss4/files/startup.sh

-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Creating an rc.d script for Jboss Web

2007-05-05 Thread Charles Mason

There's a template for a startup script in the files directory:

/usr/ports/java/jboss4/files/startup.sh



I have hacked togeather a Jboss Web version of the Jboss4 port which
handly means I can use the binary deamon control program that the
Jboss4 port uses, and its rc.d script.

Thanks for the info.

Charlie
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Creating an rc.d script for Jboss Web

2007-05-04 Thread Charles Mason

I am trying to run Jboss Web on FreeBSD, which is basically a Tomcat
derived web server which use APR to replace the Java based static file
serving in Tomcat. This makes it much faster but requires the native
modules to be complied for each platform. I have successfully managed
to compile these and it appears to all work very well.

My problem is creating an rc.d script to start and run it as a daemon.
To start Jboss Web there is an sh script called run.sh which after a
bit of config runs the JVM and the relevant JARS. I created a simple
rc.d script to run this.

My problem is running the script does not run Jboss Web as a daemon
instead it runs it as if running ./run.sh from the terminal and halts
the rc.d process. The Jboss Web server is actually working, its just
not ideal. I have included the current script below.


#!/bin/sh

. /etc/rc.subr

name=JbossWeb
rcvar=`set_rcvar`
command=/etc/JbossWeb/bin/run.sh
command_interpreter=/bin/sh


load_rc_config $name
run_rc_command $1


How can I change the script to run  run.sh in the background and
continue the rc.d system.

Charlie
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Creating an rc.d script for Jboss Web

2007-05-04 Thread Warren Block

On Fri, 4 May 2007, Charles Mason wrote:


I am trying to run Jboss Web on FreeBSD, which is basically a Tomcat
derived web server which use APR to replace the Java based static file
serving in Tomcat. This makes it much faster but requires the native
modules to be complied for each platform. I have successfully managed
to compile these and it appears to all work very well.

My problem is creating an rc.d script to start and run it as a daemon.
To start Jboss Web there is an sh script called run.sh which after a
bit of config runs the JVM and the relevant JARS. I created a simple
rc.d script to run this.

My problem is running the script does not run Jboss Web as a daemon
instead it runs it as if running ./run.sh from the terminal and halts
the rc.d process. The Jboss Web server is actually working, its just
not ideal. I have included the current script below.


It sounds like you haven't used the ports version of JBoss.  The ports 
versions may have prewritten scripts that would do what you want:


/usr/ports/java/jboss2
/usr/ports/java/jboss3
/usr/ports/java/jboss4
/usr/ports/java/jboss5

-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]