delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/05/31/11:43:23

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Authentication-Warning: shell-1.enteract.com: fcy set sender to fred AT ontosys DOT com using -f
Date: Thu, 31 May 2001 10:40:53 -0500
From: Fred Yankowski <fred AT ontosys DOT com>
To: Karl M <karlm30 AT hotmail DOT com>
Cc: cygwin AT cygwin DOT com
Subject: Re: cygrunsrv fails to start
Message-ID: <20010531104053.A29718@enteract.com>
References: <F259EmP9CDBHy3SpwBG0000b17a AT hotmail DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <F259EmP9CDBHy3SpwBG0000b17a@hotmail.com>; from karlm30@hotmail.com on Thu, May 31, 2001 at 07:59:16AM -0700

On Thu, May 31, 2001 at 07:59:16AM -0700, Karl M wrote:
> 1) How do I build cygrunsrv? (configure and make instructions...and I saw a 
> fill in the blank in the make file)

Just get the source and do 'make'.  No configure is necessary as this
is a Cygwin-only application.

> 2) When the SCM autostarts a service, does it also use start_service? Or is 
> there other code involved when the system starts the service at boot-up?

Whenever the NT SCM starts the service, either automatically during
system start or in response to a manual 'net start', it enters the
main() function of cygrunsrv with no optional arguments.  This causes
cygrunsrv to call StartServiceControlDispatcherA() to start up the
service threads.  That will indirectly call service_main() in another
thread.

> 5) I was thinking about getting the checkpoint value into the system log so 
> I can see how far it got?

That's the approach I would take:  start putting some printf() (to a
file) or syslog() calls in the code to see how far cygrunsrv gets.

Corinna:  I'm thinking about adding a 'debug' option to cygrunsrv so
that it generates such progress messages.  Would you accept a patch to
that effect?

> Timeout (30000 milliseconds) waiting for the OpenSSH service to connect.

> The OpenSSH service failed to start due to the following error: The service 
> did not respond to the start or control request in a timely fashion.

I think those are generated by the SCM itself, or by the NT
service-control APIs called within cygrunsrv.

> 7) Is there any problem with adding some syslog_starterr calls to mark 
> success also to see how far it gets at startup? (ie will this cause any 
> undesired interactions with being a service?)

I don't know about possible side-effects, but why not use syslog()
rather than syslog_starterr(), as the latter reports failure to start
the service each time it is called.

-- 
Fred Yankowski           fred AT OntoSys DOT com      tel: +1.630.879.1312
Principal Consultant     www.OntoSys.com       fax: +1.630.879.1370
OntoSys, Inc             38W242 Deerpath Rd, Batavia, IL 60510, USA

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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