From owner-freebsd-questions Mon Aug 7 13: 0:23 2000 Delivered-To: freebsd-questions@freebsd.org Received: from nisser.com (c1870039.telekabel.chello.nl [212.187.0.39]) by hub.freebsd.org (Postfix) with ESMTP id 20D1537BAC8 for ; Mon, 7 Aug 2000 13:00:18 -0700 (PDT) (envelope-from roelof@eboa.com) Received: from eboa.com (roelof [10.0.0.2]) by nisser.com (8.9.3/8.9.2) with ESMTP id WAA10869; Mon, 7 Aug 2000 22:00:09 +0200 (CEST) (envelope-from roelof@eboa.com) Message-ID: <398F15B9.CB3FB08C@eboa.com> Date: Mon, 07 Aug 2000 22:02:01 +0200 From: Roelof Osinga Organization: eboa - engineering buro Office Automation X-Mailer: Mozilla 4.72 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Ali Soylu Cc: freebsd-questions@FreeBSD.ORG Subject: Re: rc.d start-up References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Ali Soylu wrote: > > I have a program that I need to run at startup, so I added a startup script in > /usr/local/etc/rc.d/ to start up the program. Here's the script: > > #!/bin/sh > cd /usr/infochat/ > /usr/local/jdk1.1.8/bin/java infostart & > > If I start this script from command line, the server starts up, but at boot > time it does not start. I know that the script is executed at start up. And > if I remove "&" it starts-up but stops the initialization process since it's > not running in the background. > > What might be causing the problem here? Doesn't Java need all kinds of environment variables? (been a while :). Maybe they're not set when the system does the executing but are when you do it from a user shell. Roelof -- ----------------------------------------------------------------------- Eboa (ingenieursburo Office Automation) web. http://eboa.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message