This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cygrunsrv, sshd, services and not starting after boot



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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]