diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2015-11-06 17:01:52 +0100 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2015-11-06 17:01:52 +0100 |
commit | 1128235a8b69d8db11110235d34e21e3f88cc676 (patch) | |
tree | a924b7950f3e7c03ff2c92732b01fa27d9deab59 | |
parent | b94a44410a644d720dcdb1f1cd524b8386051ed1 (diff) | |
download | snooze-1128235a8b69d8db11110235d34e21e3f88cc676.tar.gz snooze-1128235a8b69d8db11110235d34e21e3f88cc676.tar.xz snooze-1128235a8b69d8db11110235d34e21e3f88cc676.zip |
README.md: rate-limiting example
-rw-r--r-- | README.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/README.md b/README.md index d33c953..9d10153 100644 --- a/README.md +++ b/README.md @@ -160,6 +160,16 @@ Use snooze inline, cron-style mail: actualjob >output 2>&1 || mail -s "$(hostname): snooze job failed with status $?" root <output +Snooze for rate-limiting a general purpose runit service: don't +restart faster than every two minutes. (Note that after a crash with a +daemon runtime of more than two minutes, it will be restarted +immediately): + + set -e + snooze -H'*' -M'*' -S'*' -t timefile -T 2m + touch timefile + exec mydaemond + ## Installation Use `make all` to build, `make install` to install relative to `PREFIX` |