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

Re: system has started e-mailing me, cron demon



David selby wrote:

Hello,

I have started to get the following message e-mailed to me at night.

Envelope-to: web@debian
From: root@debian (Cron Daemon)
To: web@debian
Subject: Cron <root@debian> test -x /etc/init.d/anacron && /etc/init.d/anacron start
+2>/dev/null
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin>
X-Cron-Env: <MAILTO=web>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <LOGNAME=root>

Starting anac(h)ronistic cron: anacron.

It seems to be saying anacron has executed, which is fine & expected ... This seems to have started since I made changes to /etc/anacrontab, making cron.daily run at 1:05 am.

# /etc/anacrontab: configuration file for anacron

# See anacron(8) and anacrontab(5) for details.

SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=web

# These replace cron's entries
1       5       cron.daily       nice run-parts --report /etc/cron.daily
7       10      cron.weekly      nice run-parts --report /etc/cron.weekly
30      15      cron.monthly nice run-parts --report /etc/cron.monthly

Its not reporting an error, I'm unsure why it is mailing me ?

Dave


You might wanna chance those lines to "nice -19 run-parts --report /etc/cron.<interval>". I don't know if that's the problem, but it might be ;)

Also, check in your cron directories to see if there's a crontab entry that restarts crontab. That's what's likely to be causing the problem. Crontab emails you any output generated by the crontab entries, and that would indicate at some point, cron is being (re)started. Do something like a "grep -r "cron" `find -name "/etc/cron*" -print`" (without quotes, of course).

Stephen Touset



Reply to: