delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/02/15/09:20:20

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=kR3ldUmg7eipblWc
NvBA4TlOIP6cYQcQuLb8LOPhefFNQdcXGzJglmAmpkVcqeU4p7J9Vb8rXnwtYIOE
IG0/mTGm4dUSOg9pNn0NB6ZHsw4D1WRSlp0uRzIzsxT013Yd0gaeSpooGDbnuOiu
z3ERGDkoaGH/fthZ5H1+ADph8tg=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=hLXAn7xbJFxUITqtRF3gzq
lfQyY=; b=M3p5yV0pzvNQjHkRcMl4aP8fSqdWhC2cMx0mRK/q/5TbVCgb6jFnkh
d0gaVbiJG1mBZM1Sx3ZjQaBdbkRWhIzYJUDnBg7fYKSmQ4iZxOC3zi3BUIrDkcrE
k5vQDooT7HDx5QDzRqmteAX9bfVOLhkA+jHaE8CFX0l60XUCx/DZU=
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
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=articles, HX-Priority:Normal, english, yandexru
X-HELO: forward106p.mail.yandex.net
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1550240401; bh=8D2totQ9i6nkT5pc5C/3h6aT6xf1vPCxOZswKvWK268=; h=Date:From:Reply-To:Message-ID:To:Subject:In-Reply-To:References; b=SyYlOcVJh6WdRtaC75jBwR0EDiG23ZNK+ILJzspsKTmOgWlPGVoJypEKiY0loAZ7T CG6rjg5EcPQh+l3PedckTp7zy7KwKP5TGv+d0DpnapRUAOI9wcEoZB24q1PYGJYsFj aXaIxirRxqCen5qLg/dgijRB/gHj7hP4DDONIAVg=
Authentication-Results: mxback19o.mail.yandex.net; dkim=pass header.i=@yandex.ru
Date: Fri, 15 Feb 2019 17:07:30 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <1175493759.20190215170730@yandex.ru>
To: Corinna Vinschen <cygwin AT cygwin DOT com>, cygwin AT cygwin DOT com
Subject: Re: cygrunsrv to have a timeout parameter for service startup
In-Reply-To: <20190215124947.GF2702@calimero.vinschen.de>
References: <BL0PR0901MB3236D41983198109E0643AE7A5670 AT BL0PR0901MB3236 DOT namprd09 DOT prod DOT outlook DOT com> <471075939 DOT 20190215144447 AT yandex DOT ru> <20190215124947 DOT GF2702 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
X-IsSubscribed: yes

Greetings, Corinna Vinschen!

> On Feb 15 14:44, Andrey Repin wrote:
>> Greetings, Lavrentiev, Anton (NIH/NLM/NCBI) [C]!
>> 
>> > It looks like the cygrunsrv utility hardcodes 30 seconds as a maximal time
>> > for a service to start, then bails out with a failure.
>> 
>> No, 30 seconds is a hard system timeout in which a service must reply with an
>> appropriate control message to let services.exe know it is ready to continue
>> startup sequence.

> Oh, really?  If so, I completely forgot about that...

This is the best I could dig right now at the subject.
https://www.codeproject.com/Articles/499465/Simple-Windows-Service-in-Cplusplus
And MSDN article https://docs.microsoft.com/en-us/windows/desktop/services/the-complete-service-sample
Looks much the same.

All the internet flooded with useless "pick 'service application' template in
Visual Studio" crap, hiding the actually useful information.
May be some more time spent in Google with control signal names reveal even
older (== more useful) articles.
Don't have that time right now, sorry. :(


-- 
With best regards,
Andrey Repin
Friday, February 15, 2019 16:59:39

Sorry for my terrible english...


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

- Raw text -


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