delorie.com/archives/browse.cgi | search |
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:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=xUbuzSJ4CW8A9CIaM2lG8g4FTYmUfo0MJgAMHfSL+O0NDT7zFckp2 | |
jwh2ESBymZPcOWOFaWvywRiDRAoIQ0z86TC+XqeGifjSp7vsKpijyg+pboLrLkPE | |
D43YJ5l5Yu6+tT3Q4VRNIxQamPnW8jb29EfZL5xshJvzGp/BsVV6i4= | |
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:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=dzlfy8Oen5nlTuK1xDYAFIBqH9U=; b=uzVEt6ATNNtUPzaqMBAzoqmdkCL7 | |
yPGTkQ5Y9rn4MGS5esFcfpvVexYvFtdAzA3RGWp703WaRS3H8o/YpoTzR1WLggDq | |
sFif48rb1OndSY+z39pGQJUjvx5e5xd90IbmUM18PPzraCKviQ64m4jtfYg6PsoS | |
A6D5Pb2VRgTx4io= | |
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=-5.0 required=5.0 tests=AWL autolearn=ham version=3.3.2 |
X-HELO: | calimero.vinschen.de |
Date: | Wed, 28 Jan 2015 16:37:05 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: cygrunsrv - services enters stopped state if underlying program exits or is killed - doesn't auto restart |
Message-ID: | <20150128153705.GD14265@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <CAEF1h+Wghm86TybnaLMz9TdX5NUV15aNBAC1KZ1dKhUOVZ-_Qg AT mail DOT gmail DOT com> <20150127090910 DOT GF14265 AT calimero DOT vinschen DOT de> <CAEF1h+XeFp_OCDNo-ok_EW=-1h94=mQRRz_ucZsix4wmow+WvQ AT mail DOT gmail DOT com> <20150128101833 DOT GX14265 AT calimero DOT vinschen DOT de> <20150128115518 DOT GZ14265 AT calimero DOT vinschen DOT de> <CAO2ddnY+fk_CwGTZVyN7u6upZDxOrTbVjUVRCeGj8KBLEDPgig AT mail DOT gmail DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <CAO2ddnY+fk_CwGTZVyN7u6upZDxOrTbVjUVRCeGj8KBLEDPgig@mail.gmail.com> |
User-Agent: | Mutt/1.5.23 (2014-03-12) |
--SVeEiVwWO9F1slJ8 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Jan 28 15:42, Kizito Porta Balany=C3=A0 wrote: > 2015-01-28 12:55 GMT+01:00 Corinna Vinschen <corinna-cygwin AT cygwin DOT com>: > > On Jan 28 11:18, Corinna Vinschen wrote: > >> On Jan 27 15:02, Cary Lewis wrote: > >> > On Tue, Jan 27, 2015 at 4:09 AM, Corinna Vinschen > >> > --neverexits works, but not if the program that cygrunsrv starts is > >> > stopped with a kill -9 signal. Perhaps the -9 signal propagates to t= he > >> > cygrunsrv.exe program? > >> > >> Hmm, yes. Cygrunsrv evaluates how the service process ended, and only > >> if it exited the neverexits logic comes into play. If it ended due to > >> a signal, it does nothing. > >> > >> This is unfortunate because it diminishes the usefulness of --neverexi= ts. > >> I could patch cygrunsrv to do this: > >> > >> If the service exited due to a signal, and if that signal is not the > >> defined termination or shutdown signal (default SIGTERM for both), > >> and if --neverexits has been defined, then performas the neverexits > >> action. > >> > >> Does that sound ok? >=20 > I would say that this should be the default behavior: >=20 > If the signal is SIGTERM and the service is configured to restart the > program, then restart the program. No. SIGTERM (rather: the defined termination signal) is send explicitely from cygrunsrv to the service process to stop the service. If this is handled like --neverexits, it would be impossible to stop a service manually. The neverexits case should only cover the cases of exiting as a result of an unexpected signal (SIGSEGV, etc). > So, --neverxits should be the default behaviour of cygrunsrv , so > --neverexists shouldn't exist as an option. :) But perhaps I'm wrong > and I don't understand completely the problem. I disagree. Automatic restart of services is not desired by default. It's a per-service, administrators choice. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --SVeEiVwWO9F1slJ8 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJUyQIhAAoJEPU2Bp2uRE+g9vgP/0v/HUd0BhoRh5Qlu3HxPnsH jvjo99mLaIyTRG9L2WNtx7QaSaKhPChTu3MvjCkcB3Bc84IoqpTWsJytJ32c5mBm rvSt2MaY0L1EIZ9jl6dj/bWqALiZz+rI2FgGVEhEP+m0p7btwyFSGMmFDbkf6dQv DDU8RgQLK/GG3qS5Kx3VCnAVXB3AmH1/Nccgo9JJEpCuWVDh81dI3tPDRdpNWD52 2y0P7Q/l64nK2tKhY+gHqIlTKpX5HtlhxGrGPEyk/s+vm9y6UXjg+RWJJKqACZyO F4XEFwJ1RcaD5AH5h/k/ObnJ3dluGZr9TCEz17vcZH2Z3zf3h6+XDC0B/YkzIw1B n70xlnBjc7sJJhg7X/I8AA47WOnoFp0Cfz7NDbS5m/WBN/Bkw0VifhzJMXeEK0UV DFKhfG8GqMYMom/lBS1hN5U5NnaLRw/6cl/QzEd8v9mHAyeuhh6jbJieLVY1I0Bm rcqxTzh9mc46wLUY/VhhbwZN5tRHuY1JaJqnYvC09shxSMZlUhnp6/5spohG6zdH eyysx4hcjvUpBq9+FfFMoiJHnSXTytRiC3lygBLIor+s+OouDIKEESqrt5PJINJC 4i3BfKHSoDjRnYCBOnsRtHv211bBxoGprpO088Sys3oBAr5IpupOwqrWxaZXuAvm klPz5UPm/VFQi9VKUt32 =UVGy -----END PGP SIGNATURE----- --SVeEiVwWO9F1slJ8--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |