Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <3C0672B4.8050404@cportcorp.com> Date: Thu, 29 Nov 2001 12:39:00 -0500 From: Peter Buckley User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2 X-Accept-Language: en-us MIME-Version: 1.0 To: Shawn Behrens CC: cygwin AT cygwin DOT com Subject: Re: cygrunsrv sshd fails: Some clues References: <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20011120080121 DOT 02440440 AT pop DOT gmx DOT li> <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20011120190516 DOT 02561e50 AT pop DOT gmx DOT li> <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20011129105747 DOT 0235c638 AT localhost> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Comments inline- Shawn Behrens wrote: > Hi, > >> Sorry, I thought when you started it manually you just typed: >> >> prompt>sshd >> >> So you are starting the service manually: >> >> prompt>cygrunsrv sshd > > > Actually, I am starting it through Control Panel or through 'net start > sshd'. > >> and it works, but starting the service automatically fails? That >> sounds like a problem with whatever version of XP you have > > > Yes. The version of XP I have is XP Professional, release version. Note > that others have reported this same problem with W2k, too, so I do not > think it is XP-specific. > The problem may not be XP specific, but it does seem to not be just sshd or cygrunsrv, since other people have it working on XP, Win2k, etc. My WG is that there is some sort of setting on Win2k or XP that decides how it will start/handle services, and that setting on your machine isn't kopasetic with sshd/cygrunsrv. I just have no idea what the setting might be :-) Have you tried starting other cygwin services, like inetd? I don't remember if we discussed it before, but it might be a helpful test to see if inetd works or not- inetd installs as a service differently than sshd IIRC, inetd --install-as-service. I saw something recently about making sure that the service was starting cygrunsrv and not sshd- it was in the context of editing the registry. I guess that your "Cygwin SSHD" service should start cygrunsrv, and then cygrunsrv should take the path to sshd as an argument. HTH, Peter > One thing I noticed is: If I set a parameter to start a .bat file on > service failure (first, second, subsequent) that will execute a 'net > start sshd' and open notepad (that last to make it do something that I > see), that .bat is never started. Very strange. So the service fails but > does not report that properly to the OS? > >> , or something about the parameters that XP starts the service with. >> Have you tried to uninstall sshd as a service, and install it with >> srvany or firedaemon? > > > I have. Specifying c:\cygwin\usr\sbin\sshd.exe as the app to be started, > c:\cygwin\usr\sbin as the application directory, and -D as the > application parameters, I get this: > FireDaemon just crashes upon starting the service > srvany says the service started okay. However, will srvany is running, > sshd is not. > > So, sshd.exe needs some things to execute that neither FireDaemon nor > srvany provide. > > Cheers > Shawn > > -- Your mouse has moved. Windows NT must be restarted for the change to take effect. Reboot now? [OK] -- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/