From owner-freebsd-questions Mon Aug 7 13:27:20 2000 Delivered-To: freebsd-questions@freebsd.org Received: from inu.net (downtown.inu.net [208.129.164.2]) by hub.freebsd.org (Postfix) with ESMTP id B7B7637B945 for ; Mon, 7 Aug 2000 13:27:15 -0700 (PDT) (envelope-from bob@inu.net) Received: from inu.net [208.129.164.18] by inu.net with ESMTP (SMTPD32-5.05) id AB9873A0142; Mon, 07 Aug 2000 15:27:13 -0500 Message-ID: <398F1B95.DBB611CE@inu.net> Date: Mon, 07 Aug 2000 15:27:01 -0500 From: Bob Martin X-Mailer: Mozilla 4.73 [en] (X11; U; FreeBSD 4.1-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: 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? > > Thanks in advance, > ALi > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message Remember, there is no environment available at startup.... /usr/local/jdk1.1.8/bin/java /usr/infochat/infostart & will probably fix this problem. You can set the environment from a script just like you do from your .profile -- Bob Martin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message