0

A service is stopping immediately after being started. The service is cygwin sshd and runs under the SYSTEM account, with cyglsa-config for cygwin authentication. How do I diagnose this?

Dan
  • 15,430
  • 1
  • 36
  • 67
Philippe Blayo
  • 281
  • 1
  • 2
  • 10

3 Answers3

2

Check the event viewer - error messages for the service should be logged there.

Dan
  • 15,430
  • 1
  • 36
  • 67
2

By default, application events should be written to the Windows Application Event Log. This includes cygwin's implementation of sshd on Windows.

MDMarra
  • 100,734
  • 32
  • 197
  • 329
0

As has already been answered, the Event Viewer is your friend here. As for the problem. It's not unusual for ported applications such as this to leave behind a pid file (*.pid) if the process terminates uncleanly. Upon a service restart the application will detect the pid file, assume that another instance is already running and exit accordingly. Find and manually remove the pid file and retry the service start.

John Gardeniers
  • 27,458
  • 12
  • 55
  • 109