Re: cron problem

From: Ehud Karni (ehud_at_nonexisting.hamakor.org.il)
Date: Tue 24 Jan 2006 - 00:17:03 IST


On Mon, 23 Jan 2006 21:36:00 +0200, Shlomo Solomon wrote:
>
> In cron.hourly there are 5 jobs. None of them are **heavy**, but cron seems to
> finish only after 50 minutes.
>
> cron.hourly runs at 1 minute past the hour. Here's the relevant line
> from /etc/crontab:
>
> [snip]
>
> At 1 mnute past the hour, I get 5 e-mails (one from each of the above jobs),
> but only at 51 minutes past the hour, I get an e-mail from cron itself
> including the output of the 5 echo lines.
>
> Note that the "debugging code" is at the end of each script, so I assume that
> should rule out the possibility that one of the jobs is actually running for
> 50 minutes. I also looked at the output of ps -A and top and didn't see
> anything unusual.

One of your cron processes is spawning a background (daemon) process
that is terminating after 50 minutes. You get the mail from crond
only when the run-parts (with all its children) is finished.

Why don't you check all the processes with `ps -ef', or better still
find the crond sid and do `ps -fs <crond-sid>'.

Ehud.

--
 Ehud Karni           Tel: +972-3-7966-561  /"\
 Mivtach - Simon      Fax: +972-3-7966-667  \ /  ASCII Ribbon Campaign
 Insurance agencies   (USA) voice mail and   X   Against   HTML   Mail
 http://www.mvs.co.il  FAX:  1-815-5509341  / \
 GnuPG: 98EA398D <http://www.keyserver.net/>    Better Safe Than Sorry
=================================================================
To unsubscribe, send mail to linux-il-request_at_linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request_at_linux.org.il


This archive was generated by hypermail 2.1.7 : Tue 24 Jan 2006 - 00:31:52 IST