X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Tue, 21 Feb 2012 10:24:17 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: cygrunsrv doesn't stop service during reboot
Message-ID: <20120221092417.GB22597@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <CAKf2h5Qkdu4b1A9dpAsFDHxX-xx-emcKJH+erDD2PdtOjLv80A@mail.gmail.com> <20120220155801.GC27701@calimero.vinschen.de> <CAKf2h5TyjwocX4i_4bzc4wNYEp8JVGdF-kSY1W6S8FG8GNTwSQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <CAKf2h5TyjwocX4i_4bzc4wNYEp8JVGdF-kSY1W6S8FG8GNTwSQ@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Feb 21 09:32, Frank Fesevur wrote:
> 2012/2/20 Corinna Vinschen:
> > Did you check your log?  Do you see any of these messages?  If not,
> > I assume that the shutdown kills the service process so fast that it
> > has no chance for the cleanup.  Which is kind of weird in case of
> > preshutdown, given that you're supposed to have 3 minutes, at least
> > by default...
> 
> I check the System log and found this error-line:
> The CYGWIN rsyncd service did not shut down properly after receiving a
> preshutdown control.

Weird.  I don't have the time to test that right now, though.

> > Interesting.  Given that 2003 doesn't support the control message
> > SERVICE_CONTROL_PRESHUTDOWN, it's kind of strange that it works on 2003
> > but not on 2008R2.  Did you try to reinstall your rsyncd service without
> > the -O option, so that the service acts on the SERVICE_CONTROL_SHUTDOWN
> > message instead?
> 
> Given the error above, I will try to install the service without the
> -O. Should I replace it with a -o or is that default behavior? The
> cygrunsrv --help is a bit confusing to me.

No, you must give the -o option.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          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

