chiark / gitweb /
check.d/logs: Only worry if Exim's paniclog is nonempty.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 11 Jul 2011 08:44:33 +0000 (09:44 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 11 Jul 2011 08:44:33 +0000 (09:44 +0100)
The log rotation script leaves the file in place.

check.d/logs

index d18e6b66ead7ff4add2a82db42b29254d922c993..9da514ccafa5ced0d8ff191afe8290135ea37480 100755 (executable)
@@ -5,6 +5,6 @@
 set -e
 
 ## Check Exim's paniclog to see whether it was upset about anything.
 set -e
 
 ## Check Exim's paniclog to see whether it was upset about anything.
-if [ -f /var/log/exim4/paniclog ]; then
+if [ -s /var/log/exim4/paniclog ]; then
   echo "W: Exim paniclog exists.  Be afraid."
 fi
   echo "W: Exim paniclog exists.  Be afraid."
 fi