Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
add comment

3 Answers

up vote 2 down vote accepted

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

share|improve this answer
add comment

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

share|improve this answer
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.