From owner-freebsd-java Mon Sep 7 12:38:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA21569 for freebsd-java-outgoing; Mon, 7 Sep 1998 12:38:46 -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 MAA21564 for ; Mon, 7 Sep 1998 12:38:45 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id MAA19158; Mon, 7 Sep 1998 12:38:42 -0700 (PDT) Received: from bubba.whistle.com(207.76.205.7) by whistle.com via smap (V1.3) id sma019152; Mon Sep 7 12:38:38 1998 Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id MAA07666; Mon, 7 Sep 1998 12:38:38 -0700 (PDT) From: Archie Cobbs Message-Id: <199809071938.MAA07666@bubba.whistle.com> Subject: Re: Daemonising a Java Process: Possible? In-Reply-To: <199809071128.FAA20259@nomad.mt.sri.com> from Nate Williams at "Sep 7, 98 05:28:03 am" To: nate@sneezy.sri.com Date: Mon, 7 Sep 1998 12:38:38 -0700 (PDT) Cc: J_Shevland@TurnAround.com.au, 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 Nate Williams 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've written a simple class + native code that does this. Lemme know > > if you're interested in seeing it. > > I'd be interested in seeing it. Do you handle spawning off the VM when > connections come in like inetd does, etc..? The stuff I wrote is basically Java wrappers around the corresponding C calls.. there are probably more elegant ways to design it, but hey... :-) My (limited) Java stuff is available at: ftp://ftp.whistle.com/pub/archie/java/ The makefiles are useful in our development, especially for building native code libraries. I'd be happy to donate if FreeBSD wanted to include them in some form under /usr/share/mk. I was also thinking that we might want to start building a basic Java codebase for people who want to write applications in Java on FreeBSD, eg. org.freebsd.util - utility classes org.freebsd.net - network related classes org.freebsd.admin - classes for system administration org.freebsd.admin.user - classes for configuring user accounts ?? I don't know what kind of demand there is out there for this right now though. FWIW, -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