From owner-freebsd-questions@FreeBSD.ORG Sat May 5 00:31:48 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ACB6116A400 for ; Sat, 5 May 2007 00:31:48 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 6D32E13C46E for ; Sat, 5 May 2007 00:31:48 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.1/8.14.1) with ESMTP id l450VjwP071885; Fri, 4 May 2007 18:31:45 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.1/8.14.1/Submit) with ESMTP id l450VhsH071882; Fri, 4 May 2007 18:31:44 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Fri, 4 May 2007 18:31:43 -0600 (MDT) From: Warren Block To: charlie@cpsoftware.com In-Reply-To: <1960fb140705040459w6631adeanc901b8c09806d12a@mail.gmail.com> Message-ID: <20070504182833.J71856@wonkity.com> References: <1960fb140705040459w6631adeanc901b8c09806d12a@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (wonkity.com [127.0.0.1]); Fri, 04 May 2007 18:31:45 -0600 (MDT) Cc: freebsd-questions@freebsd.org Subject: Re: Creating an rc.d script for Jboss Web X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 May 2007 00:31:48 -0000 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