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

Corinna Vinschen corinna-cygwin@cygwin.com
Tue Jan 27 14:13:00 GMT 2015


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?

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20150127/19ffd40d/attachment.sig>


More information about the Cygwin mailing list