Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Nov 2008 06:57:10 -0500
From:      "Michael P. Soulier" <msoulier@digitaltorque.ca>
To:        "Jeremy Chadwick" <koitsu@freebsd.org>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   debugging cronjobs not running
Message-ID:  <fb6605670811090357i7223fa23h4bf6cab5bb3b3da3@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
So, I'm running cron in debug mode, and I do see things like this
about my crontab.

load_entry()...returning successfully
load_env, read <*/5 * * * * cacti /usr/local/bin/php
/usr/local/share/cacti/poller.php 1>/dev/null 2>&1>
load_env, parse error, state = 7

but that parse_error line is the same for many links that do seem to
be run properly.

The symptoms I'm seeing is some cronjobs, specifically weekly ones,
not running as expected. Plus, I used to get email from the nightly
runs of periodic, and now I don't see anything. I know some jobs
aren't running because they produce files as output and I'm not seeing
them. That, or they're simply running unsuccessfully.

One thing I noticed is that "man 5 crontab" seems to make no mention
of the "user" field used in /etc/crontab, but that's likely just a
documentation error.

Has anyone ever configured cronjobs that just didn't run, or you
didn't get mail for them like you should have?

Thanks,
Mike
-- 
Michael P. Soulier <msoulier@digitaltorque.ca>
"Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction."
--Albert Einstein



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fb6605670811090357i7223fa23h4bf6cab5bb3b3da3>