chiark
/
gitweb
/
~mdw
/
rcheck
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
check.d/logs: Only worry if Exim's paniclog is nonempty.
[rcheck]
/
check
1
#! /bin/sh
2
###
3
### Run a collection of everyday health checks.
4
5
set -e
6
7
for check in check.d/[!#]*[!~]; do
8
{ { { set +e; "$check"; rc=$?; set -e
9
case $rc in 0) ;; *) echo >&2 "failed (rc = $rc)" ;; esac
10
} >&3; } 2>&1 |
11
sed 's/^/E: /'
12
} 3>&1 | {
13
if read line; then
14
echo "## ${check##*/}"
15
echo "$line"
16
cat
17
echo
18
fi
19
}
20
done