This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygrunsrv - services enters stopped state if underlying program exits or is killed - doesn't auto restart


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

Attachment: pgpIvtXY9yuMw.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]