summaryrefslogtreecommitdiffstats
path: root/bin/run-me
diff options
context:
space:
mode:
Diffstat (limited to 'bin/run-me')
-rwxr-xr-xbin/run-me35
1 files changed, 35 insertions, 0 deletions
diff --git a/bin/run-me b/bin/run-me
new file mode 100755
index 0000000..b17d850
--- /dev/null
+++ b/bin/run-me
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+ENVFILE="`dirname $0`/env"
+
+. $ENVFILE
+
+if [ $# -lt 1 ]; then
+ DOME="$LIST_OF_GROUPS"
+else
+ DOME="$*"
+fi
+
+for GROUP in $DOME
+do
+
+ LOCKFILE=/tmp/.$GROUP.run.lock
+
+ (
+ echo starting: `date`
+ echo
+
+ if [ -f $LOCKFILE ]
+ then
+ echo hourly cisco diffs failed: $LOCKFILE exists
+ /bin/ls -l $LOCKFILE
+ else
+ /usr/bin/touch $LOCKFILE
+ control_rancid $GROUP
+ /bin/rm -f $LOCKFILE
+ fi
+
+ echo
+ echo ending: `date`
+ ) >$BASEDIR/logs/$GROUP.`date +%Y%m%d.%H%M%S` 2>&1
+done