2012-03-12 09:25:01 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
script=`dirname $0`/run
|
|
|
|
D0=`$script`
|
|
|
|
R=$?
|
|
|
|
if [ $R -ne 0 ]; then
|
2012-03-13 13:04:49 -04:00
|
|
|
sleep 30
|
2012-03-12 09:25:01 -04:00
|
|
|
D="mimcpher: CSC System Failure: `$script`"
|
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
echo $D
|
2012-03-14 14:51:16 -04:00
|
|
|
echo $D | $HOME/bin/ircpipe irc.freenode.net \#csc
|
2012-03-12 09:25:01 -04:00
|
|
|
else
|
|
|
|
echo "Intermittent failure: $D"
|
|
|
|
fi
|
|
|
|
fi
|