need help with creating a system-service type application (unix-daemon)

Hi,

I wrote a simple java application in version 1.6 that accepts socket connections on a certain port and responds to the input it gets on this connection (almost like a chat server). Anyway I want to have this application run like daemon or a network service on windows eg. like tomcat or a web server, without needing a terminal window session opened while the application is running.

currently I'm running it like this:

java -jar socketserver.jar &

on a Debian linux system. This puts the application into the background but terminates it as soon as I close the terminal. How can I make it run as a daemon-like application (like sshd or bind etc...) so that it keeps running even after I close the SSH session or the terminal/shell I started it from?

please help!

p.s. how can I do this on windows systems?

carco

[870 byte] By [carcophana] at [2007-11-26 17:50:24]
# 1
Try running $ nohup java -jar socketserver.jar &
bckrispia at 2007-7-9 5:02:56 > top of Java-index,Java Essentials,Java Programming...
# 2
On a Windows system you will need to arrange to run it as a service. http://javaservice.objectweb.org/
dcmintera at 2007-7-9 5:02:56 > top of Java-index,Java Essentials,Java Programming...
# 3
Thank younohup seems to work quite wellMessage was edited by: carcophan
carcophana at 2007-7-9 5:02:56 > top of Java-index,Java Essentials,Java Programming...