This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

recovery for cygrunsrv service


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]