From e765e6985fac2986c266d67d575d0d5cc4b6f914 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 24 Mar 2016 11:57:10 +0100 Subject: add data logger wrapper + service file examples --- examples/dbdb-logger | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 examples/dbdb-logger (limited to 'examples/dbdb-logger') diff --git a/examples/dbdb-logger b/examples/dbdb-logger new file mode 100755 index 0000000..c0d14f0 --- /dev/null +++ b/examples/dbdb-logger @@ -0,0 +1,18 @@ +#!/bin/zsh + +export DBDB_PASSWORD=changeme + +SLEEPMIN=60 +SLEEPRAND=60 + +while sleep $(( SLEEPMIN + (RANDOM % SLEEPRAND) )); do + /srv/www/dbdb/bin/iris-delay-stats EE + sleep $(( SLEEPMIN + (RANDOM % SLEEPRAND) )) + /srv/www/dbdb/bin/iris-delay-stats KD + sleep $(( SLEEPMIN + (RANDOM % SLEEPRAND) )) + /srv/www/dbdb/bin/iris-delay-stats AH + sleep $(( SLEEPMIN + (RANDOM % SLEEPRAND) )) + /srv/www/dbdb/bin/iris-delay-stats FF + sleep $(( SLEEPMIN + (RANDOM % SLEEPRAND) )) + /srv/www/dbdb/bin/iris-delay-stats MH +done -- cgit v1.2.3