delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/01/26/22:48:30

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Harry Putnam <reader AT newsguy DOT com>
Subject: When sshd is started at /etc/rc.d/init.d .. how to start with windows at bootup
Date: Sat, 26 Jan 2008 21:47:40 -0600
Lines: 34
Message-ID: <lfunp3t7klihj062ajvsi83f1c1k48cd7q@4ax.com>
Mime-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

In the course of just kind of following my nose during cygwin install
I managed to get sshd setup to start restart etc at 

    /etc/rc.d/init.d cmd

I like that setup but it seems not to be conducive to working with
cygrunsrv or windows native  `net start cmd'  both of those approaches
fail.

   C:\>net start sshd
   The CYGWIN sshd service is starting.
   The CYGWIN sshd service could not be started.
   The service did not report an error.
   More help is available by typing NET HELPMSG 3534

   cygrunsrv -S sshd
   cygrunsrv: Error starting a service: QueryServiceStatus:  Win32   
   error 1062:
   The service has not been started.

But it starts just fine this way:

   /etc/rc.d/init.d/sshd start
  Starting sshd:                                             [  OK  ]

That is all fine with me except that I want sshd started on bootup
So that I can connect via ssh without having to go to the machine to
start sshd.

So what kind of mechanism is available to do this?  A batch file
maybe?  If so I may need a little coaching with that too.  I think I
could probably get close but I don't really know what commands might
be requred to get to `/etc/rc.d/init.d/sshd start' starting from a
windows dos prompt or at least initially from outside bash.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019