From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,d5ed8c0e1888a063 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2000-10-25 23:38:05 PST Path: supernews.google.com!sn-xit-02!supernews.com!bignews.mediaways.net!news.netcologne.de!newsfeed01.sul.t-online.de!t-online.de!newspeer.clara.net!news.clara.net!dispose.news.demon.net!demon!news.demon.co.uk!demon!pappnase.demon.co.uk!not-for-mail From: "Adam Price" Newsgroups: comp.unix.tru64 Subject: Re: cron running jobs twice? Date: Thu, 26 Oct 2000 07:20:14 +0100 Message-ID: <972542252.12957.0.nnrp-03.c2deb51d@news.demon.co.uk> References: NNTP-Posting-Host: pappnase.demon.co.uk X-NNTP-Posting-Host: pappnase.demon.co.uk:194.222.181.29 X-Trace: news.demon.co.uk 972542252 nnrp-03:12957 NO-IDENT pappnase.demon.co.uk:194.222.181.29 X-Complaints-To: abuse@demon.net X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Xref: supernews.google.com comp.unix.tru64:649 "Chris Adams" wrote in message news:svf5hmku5gb880@corp.supernews.com... > I had something odd happen last week on a system running Digital Unix > 4.0F, and I'm wondering if others have seen it. > > Basically, all jobs that were scheduled for exactly midnight were run > twice. It took me several days to realize that it had to be cron itself > (I have a couple of system cleanup scripts that I wrote that were run at > midnight or hourly and I searched through them to see if they had a > problem). > > I logged in on the console and restarted cron, and it seems to be fine > now. > Bug in cron? Have you applied the latest patch kit for 4.0F? It seems that this behaviour was one of the ones fixed by the last 'cron' patch we got from a consolidated kit(can't remember the details, someone else did the patch). The details are that cron forks a process then tries to exec it, the exec fails and for some reason the forked cron doesn't catch the error and die, but continues to run as a cron daemon. At this point you have 2 crons and so all jobs run twice. This seems to have gone away for us since the patch, so maybe you should look into it? Adam