Date: Mon, 07 Aug 2000 22:02:01 +0200 From: Roelof Osinga <roelof@eboa.com> To: Ali Soylu <alisoylu@yahoo.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: rc.d start-up Message-ID: <398F15B9.CB3FB08C@eboa.com> References: <NDBBKGNNKAMGGACJPDPOCEHPCPAA.alisoylu@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?398F15B9.CB3FB08C>