summaryrefslogtreecommitdiffstats
path: root/bin/do-diffs.in
diff options
context:
space:
mode:
Diffstat (limited to 'bin/do-diffs.in')
-rwxr-xr-xbin/do-diffs.in25
1 files changed, 21 insertions, 4 deletions
diff --git a/bin/do-diffs.in b/bin/do-diffs.in
index 1304a7e..e5d1f62 100755
--- a/bin/do-diffs.in
+++ b/bin/do-diffs.in
@@ -1,4 +1,16 @@
#!/bin/sh
+## Copyright (C) 1997-2001 by Henry Kilmer.
+## All rights reserved.
+##
+## This software may be freely copied, modified and redistributed without
+## fee for non-commerical purposes provided that this copyright notice is
+## preserved intact on all copies and modified copies.
+##
+## There is no warranty or other guarantee of fitness of this software.
+## It is provided solely "as is". The author(s) disclaim(s) all
+## responsibility and liability with respect to this software's usage
+## or its effect upon hardware, computer systems, other software, or
+## anything else.
##
# do diffs for each of the diff groups ($LIST_OF_GROUPS) from <BASEDIR>/bin/env
##
@@ -43,22 +55,27 @@ do
if [ -s $TMPDIR/.$GROUP.old ]
then
(
- cat <<END
+ echo "To: @MAILPLUS@admin-$GROUP"
+ echo "Subject: rancid hung - $GROUP"
+ echo "Precedence: bulk"
+ echo ""
+
+ cat <<END
rancid $GROUP hung on `hostname`? Old lockfile still exists:
`ls -l $LOCKFILE`
END
- ) | Mail -s "rancid hung - $GROUP" @MAILPLUS@admin-$GROUP
+ ) | sendmail -t
fi
rm -f $TMPDIR/.$GROUP.old
else
- trap 'rm -fr $LOCKFILE;' 1 2 15
+ trap 'rm -fr $LOCKFILE;exit 1' 1 2 3 6 10 11 15
touch $LOCKFILE
if [ $? -eq 0 ] ; then
control_rancid $GROUP
rm -f $LOCKFILE
fi
- trap '' 1 2 15
+ trap '' 1 2 3 6 10 11 15
fi
echo