From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 130357 invoked by alias); 27 Jan 2020 22:24:41 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 130307 invoked by uid 89); 27 Jan 2020 22:24:35 -0000 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 Received: from mout.gmx.com (HELO mout.gmx.com) (74.208.4.201) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 27 Jan 2020 22:24:33 +0000 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 Received: from mail-lf1-f48.google.com ([209.85.167.48]) by mail.gmx.com (mrgmxus001 [74.208.5.15]) with ESMTPSA (Nemesis) id 0MCLgt-1in60C1FvV-0097JB for ; Mon, 27 Jan 2020 23:24:29 +0100 Received: by mail-lf1-f48.google.com with SMTP id v201so7495505lfa.11 for ; Mon, 27 Jan 2020 14:24:28 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Bill Stewart Date: Mon, 27 Jan 2020 22:24:00 -0000 Message-ID: Subject: Re: Windows Restart Manager and cygrunsrv services To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2020-01/txt/msg00262.txt.bz2 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