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:in-reply-to:references:date :message-id:subject:from:to:content-type; q=dns; s=default; b=T+ rgEvgTmWGhoIsX0hDt6ZSTZ9LzCX8hQ35Jw7l7BNHIUDx8r/h7sZFcGby+sRjK8d 1rBsEXnAMmk6yK2dZRuy6VJNbSoQ2I3jD9OE2TbCKFo6NsjDtDvedZ5RlZH0+DzR 8VBeYfUIkeGwxu+j1LVN+WhDcmuHQgqj2cqOEE33k= 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:in-reply-to:references:date :message-id:subject:from:to:content-type; s=default; bh=kBpL5jZX vgYahSVZbgAPzTju7wg=; b=PfC0CZ+JFwqszP8Kz0VMQelnG8WOwrahetu1Spue xw4L9bxaQyOdKg7DJTcq6/13JnJwBGMd12vWUC0oRWcuKP9+EuEJhqS5fJjk7KN0 p/g6KZpy8ZK0JaNNaDeznKJzpA1U8e1jQXNZT9bZntxtGghISKVOOOXAhcJiZ4uO XjY= 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=-1.5 required=5.0 tests=AWL,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qg0-f44.google.com MIME-Version: 1.0 X-Received: by 10.224.89.70 with SMTP id d6mr4653322qam.82.1422456163219; Wed, 28 Jan 2015 06:42:43 -0800 (PST) In-Reply-To: <20150128115518.GZ14265@calimero.vinschen.de> References: <20150127090910 DOT GF14265 AT calimero DOT vinschen DOT de> <20150128101833 DOT GX14265 AT calimero DOT vinschen DOT de> <20150128115518 DOT GZ14265 AT calimero DOT vinschen DOT de> Date: Wed, 28 Jan 2015 15:42:43 +0100 Message-ID: Subject: Re: cygrunsrv - services enters stopped state if underlying program exits or is killed - doesn't auto restart From: =?UTF-8?Q?Kizito_Porta_Balany=C3=A0?= To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 2015-01-28 12:55 GMT+01:00 Corinna Vinschen : > 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 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? I would say that this should be the default behavior: If the signal is SIGTERM and the service is configured to restart the program, then restart the program. 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. Thanks for your time. >> The patch is simple and I could upload a new cygrunsrv today or tomorrow. > > https://cygwin.com/ml/cygwin-announce/2015-01/msg00041.html > > > Corinna > > -- > Corinna Vinschen Please, send mails regarding Cygwin to > Cygwin Maintainer cygwin AT cygwin DOT com > Red Hat -- 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