X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=1.9 required=5.0 tests=AWL,BAYES_20,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 Date: Fri, 25 Jun 2010 00:30:49 -0500 Message-ID: Subject: recovery for cygrunsrv service From: Terry To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Hello, I have a windows service that execs the ssh command to build a reverse SSH tunnel. It works great. However, I want to build logic in that if, for any reason, the service fails, it recovers. For example, I killed the ssh process on the remote side and I get an event in the local app log that says: Event Type: Information Event Source: sshservice Event Category: None Event ID: 0 Date: 6/25/2010 Time: 12:11:16 AM User: foo Computer: server Description: The description for Event ID ( 0 ) in Source ( sshservice ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: sshservice: PID 976: `sshservice' service stopped, exit status: 255. I configured the basic recovery options in the service tab but they aren't working in this case. The service stays stopped. What do I have to do? Thanks! -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple