summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2017-06-26 12:06:20 +0300
committerSteve Kemp <steve@steve.org.uk>2017-06-26 12:06:20 +0300
commit29f07c395aae934ab33a78e7576931def8629979 (patch)
tree65a2fe7ae3453d0d77d81fa2aeeb9d7dcc9a45ea /debian
parent8934f73320480b26ff4909139539f4937105610b (diff)
Added new cron.daily-task.
This will prune old tests from the `redis`-alerter - if that alerter isn't used this will be harmless.
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/custodian.cron.daily13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/custodian.cron.daily b/debian/custodian.cron.daily
new file mode 100755
index 0000000..0f78837
--- /dev/null
+++ b/debian/custodian.cron.daily
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+#
+# Ensure that any known-tests are pruned.
+#
+# This is only used if the `redis` alerter is enabled, if this is not
+# used then this will be harmless.
+#
+# (This script is required because redis set-members do not have TTLs
+# so they cannot be reaped automatically.)
+#
+
+/usr/bin/redis-cli del known_tests >/dev/null 2>/dev/null