[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: java application on startup



Well, I am not an expert in such things, but somethings that might work for
you...

I *think* what you are aiming for is a way to run the program in the system
init scripts yourself -- there is an /etc/init.d/skeleton file that you can
copy to a new file, edit, and then make symbolic links to it in the
/etc/rc?.d directories. It shouldn't be too difficult..

Try to use start-stop-daemon if you can. It provides some nice features, if
I recall correctly.

Most folks would just try to put it in the background, if the
start-stop-daemon program doesn't work, using a "&" at the end of the
command; eg,
/usr/local/bin/start_server_command &

If it REQUIRES having a stdin, see if you can redirect from /dev/null; eg,
/usr/local/bin/start_server_command < /dev/null &

If this doesn't work, then try redirecting from a named pipe -- man mknod(1)
for more places to look for information on this (as I don't know how to do
it either. :)

HTH..

On Sat, Feb 05, 2000 at 09:27:21PM +0200, oliver d tali wrote:
> hi!
> 
>  i'm pretty new to running java stuff on linux and i need badly one problem
>  to be solved - i'm using vqServer <www.vqsoft.com> as my http-server, but
>  it's an java-app and running normally in a console window with foreground.
> 
>  is there a way to make the app think that it has foreground, but it actually
>  doesn't with the help of some other utilities? especially, i'm looking for
>  a way to add that app in a startup script. how is it in general with java
>  apps as daemons in debian? i'm running potato and jdk1.1.7 .deb's.
> 
>  any help highly appreciated,
>  odt
> 
> -- 
>  -> this is my opinion,
>     there are laws against being killed for having one.
> 
> 
> --  
> To UNSUBSCRIBE, email to debian-java-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

-- 
Seth Arnold | http://www.willamette.edu/~sarnold/
Hate spam? See http://maps.vix.com/rbl/ for help
Hi! I'm a .signature virus! Copy me into
your ~/.signature to help me spread!


Reply to: