On 2010-02-05 13:36, j...@weedlight.ch wrote: > Hi, I wrote a small program that launches a java rmi server. And it should > run all the time. The service is running when the system is up but as soon as > I log out of the Desktop, the service terminates. I believed that there must > be a signal emitted but no luck, it doesn't log anything except "starting > MvServer". > > the command I used for installing the service: `cygrunsrv -I MvServer -d > "CYGWIN MvServer" -p /bin/MvServer.exe` > > the command I used for compilling the service program: `gcc > -D_JNI_IMPLEMENTATION_ -I/cygdrive/c/Programme/Java/jdk1.6.0_13/include > -I/cygdrive/c/Programme/Java/jdk1.6.0_13/include/win32 MvServer.c > -L/cygdrive/c/Programme/Java/jdk1.6.0_13/lib/ -ljvm -o MvServer.exe` >
Java just does that. You need to do the equivalent of passing -Xrs (reduce use of signals) to the JVM. -- Alec Kloss a...@setfilepointer.com IM: daemona...@gmail.com PGP key at http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xA241980E "No Bunny!" -- Simon, http://wiki.adultswim.com/xwiki/bin/Frisky+Dingo/Simon
pgpywhr6PTZMD.pgp
Description: PGP signature