blob: c8e416b47c29a0c333f699e889e1177983b4544c (
plain)
- #!/bin/sh
- #set -e
- stem=/var/log/mailman/smtp
- # no smtp traffic for at least 24 hours means logfiles are empty
- logsizes=$(find /var/log/mailman \( -name smtp -or -name smtp-failure -or -name smtp.1 -or -name smtp-failure.1 \) -printf '%b\n' | sort -u)
- if [ 0 = "$logsizes" ]; then
- service mailman stop
- slay list
- service mailman start
- fi
|