delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/09/02/16:18:15

X-Spam-Check-By: sourceware.org
Date: Sat, 02 Sep 2006 16:17:40 -0400
From: "Ron Dozier" <dozier AT udel DOT edu>
Subject: cygrunsrv, sshd, services and not starting after boot
To: <cygwin AT cygwin DOT com>
Message-id: <000601c6cecc$d7f73330$0201000a@RPC>
MIME-version: 1.0
X-Mailer: Microsoft Office Outlook 11
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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


I noted that a lot of people are having trouble getting the sshd service to
start automatically.  I think I discovered a problem.

Run services.msc and selecting sshd) there is a "Path to executable" field
that currently says :"C:\cygwin\bin\cygrunsrv.exe"

Based on looking at some other entries like "automatic updates which use
C:\WINDOWS\system32\svchost.exe -k netsvcs", I believe it should say:

C:\cygwin\bin\cygrunsrv.exe -S sshd

otherwise the application cygrunsrv has no idea what service to start.

Microsoft says it's up to the developer to provide a mechanism to do so.

"net start" sshd works.  Currently someone has to log in after a boot and
type the command.  The suggestion of running a batch file containing "net
start sshd" has been suggested to run automatically after a user logs in but
was not tried.

This would require a user logging in.

Features of cygrunsrv I'd like to see:
A method of changing the Path variable reported by services.msc.
A method of changing the options presented to sshd reported by services.msc.

Am I barking up the wrong tree?


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