from /etc/init.d/amavis on a debian box:
cleanup() {
[ -d /var/lib/amavis ] &&
find /var/lib/amavis -maxdepth 1 -name 'amavis-*' -type d \
-exec rm -rf "{}" \; || true
[ -d /var/lib/amavis/tmp ] &&
find /var/lib/amavis/tmp -maxdepth 1 -name 'amavis-*' -type d \
-exec rm -rf "{}" \; || true
# clear exit status
:
}
[...]
stop)
echo -n "Stopping $DESC: "
[...]
cleanup
guess where amavis dumps messages when it encounters problems?
amavisd-new[10950]: (10950-01) TROUBLE in check_mail: virus_scan FAILED: ALL
VIRUS SCANNERS FAILED:
amavisd-new[10950]: (10950-01) PRESERVING EVIDENCE in
/var/lib/amavis/tmp/amavis-20051120T064404-10950
maybe someone can explain the method to this madness...
--
Aaron J. Grier | "Not your ordinary poofy goof." | [email protected]
"silly brewer, saaz are for pils!" -- virt