Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 Aug 2000 15:27:01 -0500
From:      Bob Martin <bob@inu.net>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: rc.d start-up
Message-ID:  <398F1B95.DBB611CE@inu.net>
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?
> 
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?398F1B95.DBB611CE>