package+info?

logrotateの設定ファイルは /etc/logrotate.d/以下

  • apache
  • aptitude
  • base-config
  • exim4-base
  • mysql-server

などがある

/etc/logrorate.d/apache内容

/var/log/apache/*.log(
 weekly
 missingok
 rotate 52
 compress
 delaycompress
 notifempty
 create 644 root adm
 sharedscripts
 postrotate
  if [ -f /var/run/apache.pid ]; then \
   if [ -x /usr/sbin/invoke-rc.d ] ; then \
    invoke-rc.d apache reload > /dev/null; \
   else \
    /etc/init.d/apache reload > /dev/null; \
   fi; \
  fi;
endscript

トラブルシューティング

Could not reliably determine the server's fully qualified domain name

/etc/cron.daily/logrotate:
apache2: Could not reliably determine the server's fully qualified
domain name, using 127.0.0.1 for ServerName
apache2: Could not reliably determine the server's fully qualified
domain name, using 127.0.0.1 for ServerName

Last-modified: 2012-03-12 (月) 17:05:37 (166d)