noexcuses

Runs cronjobs until they succeed

"The existence of a golem is sometimes a mixed blessing.
Golems are not intelligent - if commanded to perform a task,
they will take the instructions perfectly literally."
-- Wikipedia

What is noexcuses? | Features | Supported Platforms | Documentation | Download

What is noexcuses?

Sometimes cronjobs fail to run successfully because a required server (like a database or ftp server) is temporarily unavailable due to power failures, hardware failures, software failures, network outages, choice of operating system, pilot error, and the like.

Typically, this results in someone being forced to examine crontabs and error reports, determine which cronjobs really need to be run, and then run them manually. This happened to me twice in one week. I don't want it to happen again. Cronjobs are meant to be automated and I want them to stay that way.

This is the rationale for noexcuses. It keeps track of cronjobs that have failed and keeps running them until they succeed. All you have to do is look at your crontabs, identify the cronjobs-that-must-succeed-no-matter-what and insert noexcuses before the command.

Then, when cron runs noexcuses, noexcuses will run the given cronjob. If the cronjob fails, noexcuses becomes a daemon that will retry the cronjob regularly until it succeeds. Even if the cron host is rebooted before the cronjob succeeds, noexcuses lets you restart all of the outstanding cronjobs. If you can't wait for the cron host to reboot, its outstanding cronjobs can be relocated to another cron host and be forgotten on the original host when it finally reboots. Also, if the cron host is down for a while, noexcuses can tell you which cronjobs missed out on running while it was down and run them. The initscript noexcuses.init can make all these things happen automatically at boot time.

In other words, noexcuses is a free, lightweight, fine-grained, unobtrusive, high-availability tool for cronjobs. Or rather, it's a high-recoverability tool for cronjobs which can either be incorporated into a highly available system or used in the absence of one.

Noexcuses is freely available under the GNU General Public License.

Features

For more information read the manual entry in the Documentation section.

Supported Platforms

Noexcuses is written in Perl5 and should run on any UNIX-like system where cron runs. Perl v5.6.0 or higher is recommended for improved security. There is no need to install any additional non-standard perl modules. Support for Vixie cron syntax extensions is almost but not entirely complete.

Documentation

There is a manpage.

noexcuses(1) - the noexcuses(1) manpage
CHANGELOG - the change log

Download

noexcuses-0.2.tar.gz [27393 bytes, 2008/3/28]
(MD5 5ff550bd386eddb10bd4214428e36bdb)
(SHA1 dbe695c74b50d83ed9463f29214baecc9c4701fa)
What is noexcuses? | Features | Supported Platforms | Documentation | Download

Last modified by raf at Fri Mar 28 00:02:47 EST 2008
v