Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 May 2007 18:31:43 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        charlie@cpsoftware.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Creating an rc.d script for Jboss Web
Message-ID:  <20070504182833.J71856@wonkity.com>
In-Reply-To: <1960fb140705040459w6631adeanc901b8c09806d12a@mail.gmail.com>
References:  <1960fb140705040459w6631adeanc901b8c09806d12a@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070504182833.J71856>