-   Linux - Server (
-   -   need help with init script (

batymahn 08-23-2007 09:18 AM

need help with init script
Hi guys,
I'm running Debian Sid with Blackdown JAVA. I developed an RMI JAVA server that I want to start on boot up. I wrote this script:

#! /bin/sh -e
echo "RMI Servers starting up"
rmiregistry &

cd /var/www/batymahn/classes

java -Djava.rmi.server.codebase=http://deb/batymahn/classes/ examples.hello.HelloImpl

echo "RMI Servers up"

I placed it in /etc/init.d and linked it to /etc/rc5.d.
I -did a chmod 700 and it seems to work when I run it manually. Could anyone give me adice on what I'm doing wrong?

kilgoretrout 08-23-2007 11:12 AM

Try this - remove your link to your init script in /etc/rc5.d and run:

# ln -s /etc/init.d/<insert script name> /etc/rc5.d/S99<insert script name>

Prefixing the link with S99 will cause your init script to be run at the very end of the init process. It may just be a timing problem and running the script at the end usually fixes that.

All times are GMT -5. The time now is 07:26 AM.