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: List-Subscribe: List-Archive: List-Post: List-Help: , 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: In-Reply-To: From: Bill Stewart Date: Mon, 27 Jan 2020 15:24:00 -0700 Message-ID: Subject: Re: Windows Restart Manager and cygrunsrv services To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="UTF-8" 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