From owner-freebsd-java Mon Sep 7 00:36:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA03639 for freebsd-java-outgoing; Mon, 7 Sep 1998 00:36:58 -0700 (PDT) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA03634 for ; Mon, 7 Sep 1998 00:36:55 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id AAA15502; Mon, 7 Sep 1998 00:36:52 -0700 (PDT) Received: from bubba.whistle.com(207.76.205.7) by whistle.com via smap (V1.3) id sma015500; Mon Sep 7 00:36:47 1998 Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id AAA07781; Mon, 7 Sep 1998 00:36:47 -0700 (PDT) From: Archie Cobbs Message-Id: <199809070736.AAA07781@bubba.whistle.com> Subject: Re: Daemonising a Java Process: Possible? In-Reply-To: <199809070129.LAA00908@WEBBSD1.turnaround.com.au> from Joe Shevland at "Sep 7, 98 11:25:50 am" To: J_Shevland@TurnAround.com.au (Joe Shevland) Date: Mon, 7 Sep 1998 00:36:47 -0700 (PDT) Cc: freebsd-java@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Joe Shevland writes: > We have a multi-threaded Java server process that we want to daemonise in > the Unix fashion of the word; what's the easiest way to do this? > > I was thinking of wrapping a bit of C code around it to handle the child > forking etc..., but even a command line equivalent would be OK (can you do > an exec or one of its cousins?) I've written a simple class + native code that does this. Lemme know if you're interested in seeing it. Also have some other handy stuff, like SysExits.java, Syslog.java, etc. These all use the JNI interface (but I use kaffe instead of the JDK). -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message