Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <000301c1681e$107fc0c0$2ae61718@bdfrd1.tx.home.com> From: "Joshua" To: Subject: Re: cygrunsrv v0.94 starts but not stops java.exe Date: Thu, 8 Nov 2001 00:24:47 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Interestingly enough, srvany.exe from the NT resource kit doesn't have any problem starting/stopping the application as a service. Of course it doesn't have the redirection functions of cygrunsrv, which I'd rather use anyway. On further inspection, it appears that cygrunsrv is receiving the stop command; it's just hanging somewhere. Would anyone suggest a way for me to further trace/debug where it's hanging? BCNU//jle SERVICE_NAME: orion_wow DISPLAY_NAME: orion_wow TYPE : 10 WIN32_OWN_PROCESS STATE : 3 STOP_PENDING (STOPPABLE,NOT_PAUSABLE,ACCEPTS_SHUTDOWN) WIN32_EXIT_CODE : 0 (0x0) SERVICE_EXIT_CODE : 0 (0x0) CHECKPOINT : 0x2 WAIT_HINT : 0x5208 ----- Original Message ----- From: "Joshua" To: Sent: Wednesday, 07 November, 2001 01:46 Subject: cygrunsrv v0.94 starts but not stops java.exe > Hi, > > I'm trying to use cygrunsrv to run a java application. It will start > the application just fine, but will not stop it. Initially, I thought that > java.exe was acting like a typical UNIX forking daemon as described in the > readme and the web. However, if I understand that problem correctly, it is > indicated by the cygrunsrv processes dying immediately after they are > started? My cygrunsrv processes do not die until I kill them or the > corresponding java.exe process. If I kill either of the cygrunsrv > processes, both die, but the java.exe process lives on. > > Now, I'm leaning towards cygrunsrv not sending the correct signal to > java.exe to get it to shutdown or java.exe not accepting the signal. If I > run the java app from the command line, a simple CTRL-C stops it. I tried > the basic signal (TERM, HUP, INT, QUIT) with no effect. Please see the > screen capture below. Any help or references would be > appreciated...BCNU//jle > > C:\bin>cygrunsrv -I Orion -p "C:\jdk1.3.1_01\bin\java.exe" -a "-jar > C:\orion\orion.jar" -c "C:\orion" -1 "C:\orion\orion.out" -2 > "C:\orion\orion.err" -o > > C:\bin>net start orion > The Orion service is starting. > The Orion service was started successfully. > > C:\bin>cygrunsrv -E orion > cygrunsrv: Error stopping a service: QueryServiceStatus: Win32 error 1053: > The service did not respond to the start or control request in a timely > fashion. > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/