delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/02/20/05:57:01

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_YG
X-Spam-Check-By: sourceware.org
Received-SPF: pass (google.com: domain of fesevur AT gmail DOT com designates 10.220.108.70 as permitted sender) client-ip=10.220.108.70;
Authentication-Results: mr.google.com; spf=pass (google.com: domain of fesevur AT gmail DOT com designates 10.220.108.70 as permitted sender) smtp.mail=fesevur AT gmail DOT com; dkim=pass header.i=fesevur AT gmail DOT com
MIME-Version: 1.0
From: Frank Fesevur <ffes AT users DOT sourceforge DOT net>
Date: Mon, 20 Feb 2012 11:56:07 +0100
Message-ID: <CAKf2h5Qkdu4b1A9dpAsFDHxX-xx-emcKJH+erDD2PdtOjLv80A@mail.gmail.com>
Subject: cygrunsrv doesn't stop service during reboot
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi,

I have a annoying problem with rsyncd running as a service using
cygsunsrv. When I reboot the server running Win2008R2 the service is
not properly stopped. Therefore the .pid file stays in /var/run and
when the server starts again, the rsync daemon not started because it
finds a .pid file.

When I manually stop the service (net stop rsyncd) it works as
expected. We don't have this problem on our Win2003 server. The
cygrunsrv command is the same on both servers: cygrunsrv -I rsyncd -d
"CYGWIN rsyncd" -f "Rsync file transfer daemon" -p /bin/rsync.exe -a
"--daemon --no-detach" -O

The reboot is done with a schedule task running the windows native
shutdown command: "shutdown -r -f -t 0"

Do I overlook something? Are other people having similar problem with
cygrunsrv with win2008R2? Do you need more information? If so, how can
I use cygcheck with a service?

Regards,
Frank

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019