service terminates after logging out of the desktop

Alec Kloss alec-keyword-cygwin.2518a7@SetFilePointer.com
Fri Feb 5 12:45:00 GMT 2010


On 2010-02-05 13:36, joel@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  alec@SetFilePointer.com   IM: daemonalec@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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20100205/c8e6d15b/attachment.sig>


More information about the Cygwin mailing list