X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: =?ISO-8859-1?Q?Ren=E9_Berber?= <r.berber@computer.org>
Subject:  Re: 'cron' fails to stop
Date:  Sat, 01 Apr 2006 20:38:19 -0600
Lines: 43
Message-ID: <e0ndeq$tj9$1@sea.gmane.org>
References:  <20060401190844.fb30e530d17747c2b054d625b8945d88.099716dc5e.wbe@email.email.secureserver.net>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1
Content-Transfer-Encoding:  quoted-printable
User-Agent: Thunderbird 1.5 (Windows/20051201)
In-Reply-To: <20060401190844.fb30e530d17747c2b054d625b8945d88.099716dc5e.wbe@email.email.secureserver.net>
OpenPGP: url=hkp://random.sks.keyserver.penguin.de
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
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

Jerry D. Hedden wrote:

> I have installed 'cron' as a service using the following:
>     cygrunsrv -I cron -d "CYGWIN cron" -p /usr/sbin/cron -a -D -e
> "CYGWIN=3Dserver ntsec tty" -i

First mistake, you should have read /usr/share/doc/Cygwin/cron.README and,
following those instructions, used cron-config.

> It starts and runs fine using:  cygrunsrv -S cron
> A reading of the services shows:
>=20
> Service             : cygserver
> Display name        : CYGWIN cygserver
> Current State       : Running
> Controls Accepted   : Stop
> Command             : /usr/sbin/cygserver
>=20
> Service             : cron
> Display name        : CYGWIN cron
> Current State       : Running
> Controls Accepted   : Stop
> Command             : /usr/sbin/cron -D

Does this look fine to you?

You have 2 cron daemons, cron is not built to do that.

> However, when I try to stop it using: cygrunsrv -E cron
> I get the following:
>=20
> cygrunsrv: Error stopping a service: QueryServiceStatus:  Win32 error
> 1053:
> The service did not respond to the start or control request in a timely
> fashion.

Stop which one of the daemons?  I told you cron is not built to do what you=
 are
doing.
--=20
Ren=E9 Berber


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

