[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: cron job runs twice



Title: RE: cron job runs twice

Just a guess: maybe your clock is causing those matters. Did you start to use some ntp lately ? maybe some regular time updating of the machine?

boaz.

-----Original Message-----
From: Tzafrir Cohen [mailto:tzafrir@technion.ac.il]
Sent: Thursday, August 02, 2001 10:18 PM
To: Linux-IL Mailing List
Subject: cron job runs twice


Hi

A couple of days ago suddenly many processes got SIGKILL over a period of
~30 minutes. The only reason I can think of is some run-away process, that
eventually got killed.

I restarted a couple of the daemons that got killed (luckily sshd was not
one of them. Crond was one of them). But ever since then I noticed a
couple of problems. One of them, which I have not managed to solve:

1. the mrtg cron job occasionally gives me:
    ERROR: I guess another mrtg is running. A lockfile
    (/home/httpd/html/mrtg/mrtg.cfg_l) aged
    1 seconds is hanging around. If you are sure that no other mrtg
    is running you can remove the lockfile
   cron running the same job twice?
   This doesn't always happen.

On /etc/cron.d/local I have:

# mrtg: update load graph every 5 minutes
0-59/5 * * * * tzafrir /usr/bin/mrtg /home/httpd/html/mrtg/mrtg.cfg

"mrtg" is not mentioned otherwise under /etc/cron*

'crontab -l' for the user 'tzafrir' does not mention anything about mrtg.

The username that appears in the subject of the cornjob message is
'tzafrir', so I figure it runs as 'tzafrir' . I suspect root is also
running those cron jobs. It used to run them in the past, and I see files
created by root.

However there is no /var/spool/crontab/root , and in the general crontab
this is not mentioned, as I said before.

Anything I'm missing?

--
Tzafrir Cohen
mailto:tzafrir@technion.ac.il
http://www.technion.ac.il/~tzafrir


=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il