X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=1.8 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 In-Reply-To: References: Date: Fri, 25 Jun 2010 09:27:04 -0500 Message-ID: Subject: Re: recovery for cygrunsrv service From: Terry To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 On Fri, Jun 25, 2010 at 12:30 AM, Terry wrote: > Hello, > > I have a windows service that execs the ssh command to build a reverse > SSH tunnel. =A0It works great. =A0However, I want to build logic in that > if, for any reason, the service fails, it recovers. =A0For example, I > killed the ssh process on the remote side and I get an event in the > local app log that says: > > Event Type: =A0 =A0Information > Event Source: =A0 =A0sshservice > Event Category: =A0 =A0None > Event ID: =A0 =A00 > Date: =A0 =A0 =A0 =A06/25/2010 > Time: =A0 =A0 =A0 =A012:11:16 AM > User: =A0 =A0 =A0 =A0foo > Computer: =A0 =A0server > 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=3D 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. =A0The service stays stopped. =A0What do I > have to do? > > Thanks! > Sorry for wasting bits. I guess this is the whole point of autossh. :) I'm new to the ssh port forwarding world. -- 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