diff options
author | Steve Kemp <steve@steve.org.uk> | 2012-12-06 10:16:46 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2012-12-06 10:16:46 +0000 |
commit | e4415ed965fde2750d6f2faa1d71d57bdad13125 (patch) | |
tree | 1dafb1599a2574e014f25bad8aff75c18e2cdda0 | |
parent | ab0088583b9e479ccade54f39be38d91fb30c09a (diff) |
Package reorganization:
Created a new package custodian-bytemark which installs a queue-monitoring cronjob.
-rwxr-xr-x | bytemark/bin/custodian-queue-monitor | 7 | ||||
-rw-r--r-- | bytemark/cron/custodian-queue-monitor | 6 | ||||
-rw-r--r-- | debian/control | 11 | ||||
-rw-r--r-- | debian/custodian.docs (renamed from debian/docs) | 0 | ||||
-rw-r--r-- | debian/custodian.examples (renamed from debian/examples) | 0 | ||||
-rw-r--r-- | debian/custodian.install (renamed from debian/install) | 0 | ||||
-rw-r--r-- | debian/custodian.manpages (renamed from debian/manpages) | 0 |
7 files changed, 24 insertions, 0 deletions
diff --git a/bytemark/bin/custodian-queue-monitor b/bytemark/bin/custodian-queue-monitor new file mode 100755 index 0000000..91a0364 --- /dev/null +++ b/bytemark/bin/custodian-queue-monitor @@ -0,0 +1,7 @@ +#!/bin/sh + +if ( custodian-queue --monitor ) ; then + echo "All OK" +else + echo "Too large a queue" +fi diff --git a/bytemark/cron/custodian-queue-monitor b/bytemark/cron/custodian-queue-monitor new file mode 100644 index 0000000..db83ec8 --- /dev/null +++ b/bytemark/cron/custodian-queue-monitor @@ -0,0 +1,6 @@ +# +# Alert if our custodian queue has too many entries in it. +# +# That implies the queue isn't emptying because of either a bug or too many tests +# +*/2 09-18 * * 1-5 nobody /usr/bin/custodian-queue-monitor diff --git a/debian/control b/debian/control index 240d0ff..2ec067d 100644 --- a/debian/control +++ b/debian/control @@ -18,3 +18,14 @@ Description: This package provides remote monitoring The monitoring consists of a system to enqueue tests in a beanstalkd server, and an agent that will fetch tests from that same queue and execute them. + +Package: custodian-bytemark +Architecture: all +Depends: custodian +Description: Bytemark-specific add-ons for Custodian. + This package contains some monitoring for the monitor, + to ensure that custodian isn't failing to parse configuration + files, or failing to empty the queue. + . + It might be useful reference material for others but it is + explicitly Bytemark-specific diff --git a/debian/docs b/debian/custodian.docs index 55d0a41..55d0a41 100644 --- a/debian/docs +++ b/debian/custodian.docs diff --git a/debian/examples b/debian/custodian.examples index fff2319..fff2319 100644 --- a/debian/examples +++ b/debian/custodian.examples diff --git a/debian/install b/debian/custodian.install index 74785a5..74785a5 100644 --- a/debian/install +++ b/debian/custodian.install diff --git a/debian/manpages b/debian/custodian.manpages index d448092..d448092 100644 --- a/debian/manpages +++ b/debian/custodian.manpages |