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=hS 3y7gc+9xbvnKFzySgMlQoK1HYrYZzYHCevXnIdgV9Kl3bNB0aalzrKUz4UTlrF0y hORFuvj6eK4ShR6ihKhA/nC5nvS4pEJuRVCzZhvsUzbh8LDywjrAa9ofbDl1aIh7 Garxudeb3bznvPaqnALRC25BqmNK6q5NrRLoJvIPE= 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=c7a07kGp WAlRcjEXM2j6cUlWD7Y=; b=J5UMzna2tBLC/az57b3CKC6Ncv+Ne7qOrkhksfL/ ECJAaO5q7NQSfFfXM9Z9MUX26VZzH7TeFwRznBvzc6TiHeLeyjHHm2kQsvDgdEz6 GZWcYFjmusgItzm/Qy0vdLjYzavaUn+1JWnMQttJ5LhELojTX9UYvvK46i6kBNKI rc0= 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 Delivered-To: corinna-cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=0.3 required=5.0 tests=AWL,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-qa0-f53.google.com MIME-Version: 1.0 X-Received: by 10.224.65.137 with SMTP id j9mr1944613qai.47.1422388920514; Tue, 27 Jan 2015 12:02:00 -0800 (PST) In-Reply-To: <20150127090910.GF14265@calimero.vinschen.de> References: <20150127090910 DOT GF14265 AT calimero DOT vinschen DOT de> Date: Tue, 27 Jan 2015 15:02:00 -0500 Message-ID: Subject: Re: cygrunsrv - services enters stopped state if underlying program exits or is killed - doesn't auto restart From: Cary Lewis To: cygwin AT cygwin DOT com, corinna-cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Corinna, thanks for the tip --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? I will investigate monit. On Tue, Jan 27, 2015 at 4:09 AM, Corinna Vinschen wrote: > 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 -- 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