delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/02/13:41:06

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=4.1 required=5.0 tests=AWL,BAYES_20,BOTNET
X-Spam-Check-By: sourceware.org
Message-id: <000901caba2f$74fa7240$120010ac@wirelessworld.airvananet.com>
From: "Pierre A. Humblet" <Pierre DOT Humblet AT ieee DOT org>
To: <pmcferrin AT columbus DOT rr DOT com>
Cc: <cygwin AT cygwin DOT com>
References: <4B8CBA93 DOT 3020007 AT columbus DOT rr DOT com> <0KYN004SUPWSFHF2 AT vms173013 DOT mailsrvcs DOT net> <4B8D44DF DOT 8090205 AT columbus DOT rr DOT com>
Subject: Re: cron fails to run as a service
Date: Tue, 02 Mar 2010 12:40:31 -0500
MIME-version: 1.0
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: "Paul McFerrin" <
To: "Pierre A. Humblet" <Pierre DOT Humblet AT ieee DOT org>
Sent: Tuesday, March 02, 2010 12:03


| Pierre A. Humblet wrote:
| >
| > Some of your problems are due to launching a new cron daemon while an 
| > old one is still running.
| 
| What "old" cron.  This is the firts setup.  

In the log snippet below the old cron is pid 368. You are trying to launch
a new cron with pid 2508.

| As to your SIGHUP question, 
| my experience is limited to such items as httpd for web server.  They 
| let SIGHUP to kill it off. During shutdown, I send SIGHUP to all process 
| group leaders.follwed by signal 9 about 15 seconds later.  If they 
| survive SIGHUP, signal 9 will do them in.

Re. SIGHUP, the cron man page says "On receipt of a SIGHUP, the
cron daemon will close and reopen  its  log file." 

However cron will terminate cleanly on SIGTERM and SIGINT.
If you run cron under cygrunsrv, see cygrunsrv --help to see what can be
done in case of shutdown. (--shutsig and --XXXshutdown)

| >
| > If you experiment with cron, you can view the cron log by using 
| > "cronevents"
| >
| > 2010/03/01 01:38:45 [Paul] /usr/sbin/cron: PID 368: (CRON) STARTUP (V5.0)
| > 2010/03/01 01:47:26 [Paul] /usr/sbin/cron: PID 2508: (CRON) DEATH 
| > (can't lock /var/run/cron.pid, otherpid may be 368: Resource 
| > temporarily unavailable)

Pierre

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