delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/01/27/17:25:34

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:mime-version:references:in-reply-to:from:date
:message-id:subject:to:content-type; q=dns; s=default; b=EdIw/q8
w7Zq3kaetY6/bxKJSrDY8sG5caf1NhxdIwsRIcWbTytkp9baN/Fibp94RNs5N/QW
9GKtlhlCMwqqPYPurs16iBCcrdBeGbDwxX3YbhpUI8GqSyq7XgrXCM/wtsVdZGAv
R9omZ5YCCa7cCeDG0WM7vm27GhLKGBECLM94=
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:mime-version:references:in-reply-to:from:date
:message-id:subject:to:content-type; s=default; bh=sB5vuEL9M/SlR
orFrKSOwHXnsh4=; b=H+34gt/AGoAR6ZElIRbYiWU7AuLiNorB8rdAFhI5PXCfq
KxBMcY/BVoredI4CjCE8Z5ujLbA1lCJ9nokHzMJxXIFYcMICNNGSx7LP13S2HB/p
Up2ZDg2IHe/mzGdFURd8A398pqWQog1VWq2/ei2wrLkGrn1pfvZoDkHaPFHl6o=
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=-2.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=imperfect, explanation, H*f:R_JcAT5V, H*i:R_JcAT5V
X-HELO: mout.gmx.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail.com; s=dbd5af2cbaf7; t=1580163869; bh=tngZXZFHfGmpHcPgxBm28d5AM+vmmKFnwgfzxrqw0m4=; h=X-UI-Sender-Class:References:In-Reply-To:From:Date:Subject:To; b=eVz8kGHDah7TZmoQ2U6LE5IAdBhc67WWnnIcI89UWzhn8O+hQCpVafNTRuGK5vcn1 OZMhe7rAeinB12RdUcVi4tuDEYqnHawedit+Ut4Xus7nUoPk7cv2G/qvKtalNYPeRQ dGRcF2knch6Pmb8FVElRFaWpG38GWcd3wwDJTKTI=
X-UI-Sender-Class: 214d933f-fd2f-45c7-a636-f5d79ae31a79
MIME-Version: 1.0
References: <CANV9t=RWS9udBWsfETtKbVNfdkNJNht2qq7-KFTnRpFE2gmnFw AT mail DOT gmail DOT com> <CANV9t=R_JcAT5V-+kj5FLbpQ5SMvd_fQKjHuVqJGwrhs5M598Q AT mail DOT gmail DOT com>
In-Reply-To: <CANV9t=R_JcAT5V-+kj5FLbpQ5SMvd_fQKjHuVqJGwrhs5M598Q@mail.gmail.com>
From: Bill Stewart <bstewart AT iname DOT com>
Date: Mon, 27 Jan 2020 15:24:00 -0700
Message-ID: <CANV9t=TwfTj3ZV0iXmLSBRVZdhaLDEHFaCT-S6Uikhndusx0Hg@mail.gmail.com>
Subject: Re: Windows Restart Manager and cygrunsrv services
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

On Mon, Jan 27, 2020 at 9:19 AM Bill Stewart wrote:

> > Any ideas why Restart Manager doesn't work for cygrunsrv services?
> ...
> Question also posted on StackOverflow:
>
> https://stackoverflow.com/questions/59902201/
>
> Any insights appreciated.

According to my investigation and understanding as of this writing,
the behavior appears to be as follows:

1. Restart Manager sees the cygrunsrv.exe executable correctly as a
service and as restartable. This is good.

2. However, any executable spawned by cygrunsrv.exe as a service
(e.g., sshd.exe), is seen as NOT restartable for some reason. This is
not so good, and prevents the service from being restarted
automatically by Restart Manager.

I don't know the explanation for this behavior. It seems unintuitive
and is confusing, at the least.

Just a guess: Perhaps this behavior would be resolved if Cygwin
executables used RegisterApplicationRestart[1] ?

In any case, I have an imperfect workaround, but it would be good if
this workaround wasn't necessary.

Regards,

Bill

__________

[1] https://docs.microsoft.com/en-us/windows/win32/recovery/registering-for-application-restart

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