need help with init script
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"
java -Djava.rmi.server.codebase=http://deb/batymahn/classes/ -Djava.security.policy=file:/var/www/batymahn/classes/policy 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?