From 8c5c1d20fc744c7e60a6197fc397b44d424c65b8 Mon Sep 17 00:00:00 2001 From: Tar Committer Date: Sun, 20 Jun 1999 23:17:14 +0000 Subject: Imported from rancid-1.0.tar.gz. --- bin/run-me | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 bin/run-me (limited to 'bin/run-me') 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 -- cgit