delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/01/28/07:51:31

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:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=DqjzpIcK21AcbOTi
fQ5a3taD4xlRUikXeDVuDRN8h+doFNDh37ritl2tFNpTNWfnLZMJTJWlT41ypsxR
pd/7i0Ys3fW24KGM1U0MTd9x3IsMpgZ59enl7Yd2TwitIG4pQM6xhrD4BZoyVhqq
f9RhOxh4A1YMpdhB7BfPUS6RCjc=
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:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=XnXfiSTJmwd+OgqWStgjWZ
UtryI=; b=ikIaZ3kynzPCNZJt7/rkuCwEBRWHKnB412GdFPwciP1z3WGd0y1aoJ
PLbtC8IqWqWw4thvclBH5dZ3ufqg/b7ibjlyDtuVzJ+3/fnj3nOq0yaw7qJCljuT
EHbsvUN8GdPooNg8huTUs/ZgTOeILno3BY+VXqmboQi75NaSEo6p0=
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=1.3 required=5.0 tests=AWL,FREEMAIL_FROM,KAM_BODY_URIBL_PCCC,KAM_FROM_URIBL_PCCC,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: smtp.ht-systems.ru
Date: Wed, 28 Jan 2015 15:40:54 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <1262358596.20150128154054@yandex.ru>
To: Corinna Vinschen <cygwin AT cygwin DOT com>, cygwin AT cygwin DOT com
Subject: Re: cygrunsrv - services enters stopped state if underlying program exits or is killed - doesn't auto restart
In-Reply-To: <20150128101833.GX14265@calimero.vinschen.de>
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>
MIME-Version: 1.0
X-IsSubscribed: yes

Greetings, 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 the
>> 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 --neverexits.
> 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?

For me, yes.

> The patch is simple and I could upload a new cygrunsrv today or tomorrow.


--
WBR,
Andrey Repin (anrdaemon AT yandex DOT ru) 28.01.2015, <15:40>

Sorry for my terrible english...


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