delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/01/23/10:28:56

X-Spam-Check-By: sourceware.org
Date: Tue, 23 Jan 2007 10:26:20 -0500
From: "Pierre A. Humblet" <Pierre DOT Humblet AT ieee DOT org>
Subject: Re: Can't start cron daemon in Cygwin 1.5.23 under WinXP SP2
To: "Steve Rowley" <sgr AT alum DOT mit DOT edu>, <cygwin AT cygwin DOT com>
Message-id: <009501c73f02$d6383200$3e0010ac@wirelessworld.airvananet.com>
MIME-version: 1.0
X-Mailer: Microsoft Outlook Express 6.00.2900.2869
References: <uwt3eznym DOT fsf AT sanofi-aventis DOT com> <45B545C3 DOT DF70C019 AT dessent DOT net> <17845 DOT 36409 DOT 265000 DOT 733500 AT sanofi-aventis DOT com>
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

----- Original Message ----- 
From: "Steve Rowley"
To: <cygwin>
Sent: Monday, January 22, 2007 11:25 PM
Subject: ***[Possible UCE]*** Re: Can't start cron daemon in Cygwin 1.5.23 under WinXP SP2


| >Date: Mon, 22 Jan 2007 15:16:19 -0800
| >From: Brian Dessent <brian at dessent dot net>
| >
| >Steve Rowley wrote:
| >>     >In case of problem, examine the log file for cron,
| >>     >/var/log/cron.log, and the Windows event log
| >>     >for information about the problem cron is having.
| >
| >This is the key thing to look at, the actual reason for why it can't
| >start should be in one of those two locations.
|
| Excellent points.  Here are the results:
|
| (1) There is no /var/log/cron.log.  Since this is the first time I've
|    tried to bring up cron on this machine, I take it to indicate that
|    the daemon never got as far as creating its log file.
|
| (2) Windows event log: yes, there are some cron-related events there.
|    Had I read the message as carefully as you did, I would have
|    found Application events like this:
|
|    >Event Type: Error
|    >Event Source: cron
|    >Event Category: None
|    >Event ID: 0
|    >Date: 1/22/2007
|    >Time: 11:00:27 PM
|    >User: NT AUTHORITY\SYSTEM
|    >Computer: CBDWB00033
|    >Description:
|    >The description for Event ID ( 0 ) in Source ( cron ) cannot be found. The local computer 
may not have the necessary registry information or message DLL files to display messages from a 
remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see 
Help and Support for details. The following information is part of the event: cron: PID 304: 
starting service `cron' failed: fork: 11, Resource temporarily unavailable.
|
| Any idea what to make of that?

It's not clear if the problem is in cron, cygrunsrv, cygwin  or your XP setup.
So here are two suggestions:
1) run cron as yourself (answer yes in cron-config).
    This tends  to work around security issues
2) create a /usr/sbin/cron script  readable and writable by all (leave /usr/sbin/cron.exe alone)
    with something like

#! /bin/sh
id
env
sleep 10
id > c:/id.out

 That should produce output in /var/log/cron.log and c:/id.out
 ps -a (within 10 sec)  should show cygrunsrv, sh and sleep
 The Windows event log should have two entries about the service starting and stopping.
 Hopefully some clue will emerge....

 Let us know hat happens.

Pierre 


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