delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/22/22:43:01

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <005401c2c291$9dc58810$a77286d9@webdev>
From: "Elfyn McBratney" <elfyn-cygwin AT exposure DOT org DOT uk>
To: "cygwin" <cygwin AT cygwin DOT com>, "Wu Yongwei" <adah AT netstd DOT com>
References: <3E2F595B DOT 7050606 AT netstd DOT com>
Subject: Re: Cron Problems
Date: Thu, 23 Jan 2003 03:43:34 -0000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

> 2) How to start cron when starting the computer?  I tried running it as
> a service in cygrunsrv (cygrunsrv -I cron -p /usr/sbin/cron), but failed
> since starting the service always failed (cron : Win32 Process Id =
> 0x3F8 : Cygwin Process Id = 0x3F8 : starting service `cron' failed:
> execv: 0, No error.) but the process cron appeared.

Your problem is that your not passing the -D (Do not kill off parent
process; which allows cron to be used by the service manager) option. So you
need to append `-a -D' to your cygrunsrv line when installing cron.

Regards,

Elfyn McBratney
elfyn AT exposure DOT org DOT uk




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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