X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=BAYES_00,FRT_WEIGHT2,WEIRD_PORT X-Spam-Check-By: sourceware.org Date: Fri, 5 Feb 2010 06:45:18 -0600 To: cygwin AT cygwin DOT com Subject: Re: service terminates after logging out of the desktop Message-ID: <20100205124517.GF4362@hamlet.SetFilePointer.com> References: <3526 DOT 1265373394 AT weedlight DOT ch> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="B0nZA57HJSoPbsHY" Content-Disposition: inline In-Reply-To: <3526.1265373394@weedlight.ch> User-Agent: Mutt/1.4.2.3i X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alec Kloss X-Primary-Address: alec AT SetFilePointer DOT com X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com --B0nZA57HJSoPbsHY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2010-02-05 13:36, joel AT weedlight DOT ch wrote: > Hi, I wrote a small program that launches a java rmi server. And it shoul= d run all the time. The service is running when the system is up but as soo= n as I log out of the Desktop, the service terminates. I believed that ther= e must be a signal emitted but no luck, it doesn't log anything except "sta= rting MvServer". >=20 > the command I used for installing the service: `cygrunsrv -I MvServer -d = "CYGWIN MvServer" -p /bin/MvServer.exe` >=20 > the command I used for compilling the service program: `gcc -D_JNI_IMPLEM= ENTATION_ -I/cygdrive/c/Programme/Java/jdk1.6.0_13/include -I/cygdrive/c/Pr= ogramme/Java/jdk1.6.0_13/include/win32 MvServer.c -L/cygdrive/c/Programme/J= ava/jdk1.6.0_13/lib/ -ljvm -o MvServer.exe` >=20 Java just does that. You need to do the equivalent of passing -Xrs (reduce use of signals) to the JVM.=20 --=20 Alec Kloss alec AT SetFilePointer DOT com IM: daemonalec AT gmail DOT com PGP key at http://pgp.mit.edu:11371/pks/lookup?op=3Dget&search=3D0xA241980E "No Bunny!" -- Simon, http://wiki.adultswim.com/xwiki/bin/Frisky+Dingo/Simon --B0nZA57HJSoPbsHY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFLbBLdkQ6e6D/NCvIRAs0jAKDLAgKIWZduFYzplQ/tqm0bX05+IQCgiCCi Um+1XHHbBlyzfaPyZQVHNkk= =xM37 -----END PGP SIGNATURE----- --B0nZA57HJSoPbsHY--