X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 	tests=BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <234360.35947.qm@web111406.mail.gq1.yahoo.com>
Date: Thu, 21 Jan 2010 20:15:11 -0800 (PST)
From: Myron Flickner <flickner@yahoo.com>
Subject: Problems starting sshd as a service on  cygwin 1.7.1
To: cygwin@cygwin.com
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On one of my upgraded 1.7.1 system sshd quit running as a service and would not restart.  I tried a few things 
but never could make it work so I decided to reinstall.  

I uninstalled cygwin per the FAQ and a posting on removing sshd

http://www.cygwin.com/faq/faq-nochunks.html#faq.setup.uninstall-all
http://chinese-watercolor.com/LRP/printsrv/remove-cygwin.html

I reinstalled cygwin choosing defaults options.   Then I added openssh to this install.  
Ran ssh-host-config  answered all the questions yes and set CYGWIN to "tty ntsec".  
After this "cygrunsrv -S  sshd" fails. most of the time - although I've seen it work a few times.  
An example session is below.   

Any suggestions on a work around or how to trace this ? 

[flick@flick-t42]/var/log<524>cygrunsrv -S sshd
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
The service has not been started.

[flick@flick-t42]/var/log<525>cygrunsrv -S sshd
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
The service has not been started.

[flick@flick-t42]/var/log<526>cygrunsrv -V -Q sshd
Service             : sshd
Display name        : CYGWIN sshd
Current State       : Stopped
Command             : /usr/sbin/sshd -D
stdin path          : /dev/null
stdout path         : /var/log/sshd.log
stderr path         : /var/log/sshd.log
Environment         : CYGWIN="tty ntsec"
Process Type        : Own Process
Startup             : Automatic
Dependencies        : tcpip
Account             : LocalSystem

[flick@flick-t42]/var/log<527>cygrunsrv -S sshd
[flick@flick-t42]/var/log<528>cygrunsrv -E sshd
[flick@flick-t42]/var/log<529>cygrunsrv -S sshd
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
The service has not been started.

[flick@flick-t42]/var/log<530>cygrunsrv -S sshd
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
The service has not been started.

[flick@flick-t42]/var/log<531>
[flick@flick-t42]/var/log<531>cygrunsrv -S sshd
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
The service has not been started.

[flick@flick-t42]/var/log<532>cygrunsrv -V -Q sshd
Service             : sshd
Display name        : CYGWIN sshd
Current State       : Stopped
Command             : /usr/sbin/sshd -D
stdin path          : /dev/null
stdout path         : /var/log/sshd.log
stderr path         : /var/log/sshd.log
Environment         : CYGWIN="tty ntsec"
Process Type        : Own Process
Startup             : Automatic
Dependencies        : tcpip
Account             : LocalSystem

[flick@flick-t42]/var/log<533>cygrunsrv -S sshd
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
The service has not been started.



 imaging away / flick



      

--
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

