Commits

Zhang Huangbin committed d265057

Add missing iredapd log file in logrotate.

  • Participants
  • Parent commits 606528b

Comments (0)

Files changed (2)

iRedMail/conf/iredapd

 export IREDAPD_LISTEN_PORT='7777'
 
 export IREDAPD_LOG_FILE='/var/log/iredapd.log'
+export IREDAPD_RR_LOG_FILE='/var/log/iredapd-rr.log'
 export IREDAPD_LOGROTATE_FILE="${LOGROTATE_DIR}/iredapd"

iRedMail/functions/iredapd.sh

         ECHO_DEBUG "Setting logrotate for iRedAPD log file."
         cat > ${IREDAPD_LOGROTATE_FILE} <<EOF
 ${CONF_MSG}
-${IREDAPD_LOG_FILE} {
+${IREDAPD_LOG_FILE} ${IREDAPD_RR_LOG_FILE} {
     compress
     weekly
     rotate 10