This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: cygrunsrv - services enters stopped state if underlying program exits or is killed - doesn't auto restart
- From: Kizito Porta Balanyà <kfeina at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 27 Jan 2015 12:36:02 +0100
- Subject: Re: cygrunsrv - services enters stopped state if underlying program exits or is killed - doesn't auto restart
- Authentication-results: sourceware.org; auth=none
- References: <CAEF1h+Wghm86TybnaLMz9TdX5NUV15aNBAC1KZ1dKhUOVZ-_Qg at mail dot gmail dot com> <20150127090910 dot GF14265 at calimero dot vinschen dot de>
2015-01-27 10:09 GMT+01:00 Corinna Vinschen <corinna-cygwin@cygwin.com>:
> On Jan 26 11:14, Cary Lewis wrote:
>> I am using cygrunsrv to install a windows service that creates an ssh tunnel.
>
>> I have configured the service to auto-restart on failures using the
>> windows 7 services.msc tool.
>>
>> If the ssh program exists, or is killed, cygrunsrv gracefully exits,
>> and the windows auto-restart logic is not invoked.
>> Is there a way to get the auto-restart logic to work?
I'm doing it with monit compiled in cygwin (works most of the features).
I have create some wrappers scripts that does the job.
Tell me if you need something.
Regards.
>
> Try the cygrunsrv option --neverexits. If this option is set, the
> service exits without notifying Windows. SCM thinks the service has
> exited prematurely and restarts it, if auto-restart has been configured.
>
>
> HTH,
> 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