delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/04/01/22:32:48

X-Spam-Check-By: sourceware.org
Date: Sat, 01 Apr 2006 20:32:36 -0700
From: "Jerry D. Hedden" <jerry AT hedden DOT us>
Subject: RE: 'cron' fails to stop
To: cygwin AT cygwin DOT com
Message-ID: <20060401203236.fb30e530d17747c2b054d625b8945d88.76e8ba91ed.wbe@email.email.secureserver.net>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

> 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=server ntsec tty" -i

René Berber replied:
> First mistake, you should have read /usr/share/doc/Cygwin/cron.README and,
> following those instructions, used cron-config.

Interesting clue.  'cron-config' installs 'cron' without the -i flag. 
However, I need the -i flag for some of my cron jobs.
If I install cron without -i, it stops using:  cygrunsrv -E cron
If I install cron with -i, it fails to stop.  Why won't it stop if -i is
present?

> > It starts and runs fine using:  cygrunsrv -S cron
> > A reading of the services shows:
> >
> > Service             : cygserver
> > Display name        : CYGWIN cygserver
> > Current State       : Running
> > Controls Accepted   : Stop
> > Command             : /usr/sbin/cygserver
> >
> > 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.

No.  Just one.  I listed all services (cygserver and cron) for
completeness.


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

- Raw text -


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