running program as a daemon
i am trying to daemonize my (java) program on ubuntu.
For that end i created a script based on /etc/init.d/skeleton script which obviously uses start-stop-daemon.
I put the script to /etc/init.d
I added symbolic link to it for the runlevel 2.
But I cannot make the process (java program) run on the background. it keeps running in the same terminal i start my daemon script. Trying --background option for start-stop-daemon does not help.
This is a remote server to which i can only login via telnet.
Any ideas what is missing here?