From: Bill Stewart <bstewart@iname.com>
To: cygwin@cygwin.com
Subject: Re: Windows Restart Manager and cygrunsrv services
Date: Mon, 27 Jan 2020 22:24:00 -0000 [thread overview]
Message-ID: <CANV9t=TwfTj3ZV0iXmLSBRVZdhaLDEHFaCT-S6Uikhndusx0Hg@mail.gmail.com> (raw)
In-Reply-To: <CANV9t=R_JcAT5V-+kj5FLbpQ5SMvd_fQKjHuVqJGwrhs5M598Q@mail.gmail.com>
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
prev parent reply other threads:[~2020-01-27 22:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-23 17:44 Bill Stewart
2020-01-27 16:20 ` Bill Stewart
2020-01-27 22:24 ` Bill Stewart [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CANV9t=TwfTj3ZV0iXmLSBRVZdhaLDEHFaCT-S6Uikhndusx0Hg@mail.gmail.com' \
--to=bstewart@iname.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).