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" To: Cc: 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 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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" 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