From 0011eea94ae1523e64807ff64b00f85a9a3a822c Mon Sep 17 00:00:00 2001 From: Fredrik Eriksson Date: Thu, 2 May 2019 19:48:04 +0200 Subject: [PATCH] Update README.md --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 44ef670..86b3f39 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,17 @@ # cronwrapper -Wrapper for cronjobs to handle failures in manageable ways. \ No newline at end of file +Wrapper for cronjobs to handle failures in a more sane way. + +## Features + * Set a time limit for how long cron job are allowed to run + * Detect failures based on exit codes and output to stderr + * Restrict how often a cron job should send output mail on failure + * Ensure that only a single instance of the cron job is running at any time + + +## Usage +Just run `cronwrapper --help` to check available options and flags. Decide on +your preferences, and define your cronjob like this: + +`* * * * * root /usr/local/bin/cronwrapper -n awesome_job -- /path/to/cronjob --cronjobflag` +