ich habe gerade festgestellt, dass z.B. die Apache-Log-Files nicht "mehr" rotiert werden. Die access.log war 95MB groß.
[EDIT]
Achso, es handelt sich um einen VServer mit Debian Lenny.
Ich habe dann ein wenig recherchiert und folgendes überprüft:
Code: Select all
cat /etc/crontab:
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
57 * * * * root cd / && run-parts --report /etc/cron.hourly
28 0 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
0 1 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
0 0 15 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#
run-parts --test -v /etc/cron.daily:
/etc/cron.daily/apache2
/etc/cron.daily/apt
/etc/cron.daily/aptitude
/etc/cron.daily/cracklib-runtime
/etc/cron.daily/logrotate
/etc/cron.daily/lprng
/etc/cron.daily/man-db
/etc/cron.daily/ntp
/etc/cron.daily/spamassassin
/etc/cron.daily/standard
/etc/cron.daily/sysklogd
cat /var/log/syslog | grep cron.daily:
Oct 6 03:38:01 h1485393 /USR/SBIN/CRON[5186]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ))
Oct 7 03:38:01 h1485393 /USR/SBIN/CRON[21766]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ))
Oct 8 03:38:01 h1485393 /USR/SBIN/CRON[3857]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ))
Oct 9 03:38:01 h1485393 /USR/SBIN/CRON[21802]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ))
Oct 10 03:38:02 h1485393 /USR/SBIN/CRON[9398]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ))
...
Apr 19 00:28:01 h1485393 /USR/SBIN/CRON[1783]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ))
Apr 20 00:28:02 h1485393 /USR/SBIN/CRON[13771]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ))
Apr 21 00:28:01 h1485393 /USR/SBIN/CRON[27910]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ))
Apr 22 00:28:01 h1485393 /USR/SBIN/CRON[9935]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ))
Apr 23 00:28:01 h1485393 /USR/SBIN/CRON[26276]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ))
Apr 24 00:28:01 h1485393 /USR/SBIN/CRON[7525]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ))
Apr 25 00:28:01 h1485393 /USR/SBIN/CRON[19964]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ))
Apr 26 00:28:01 h1485393 /USR/SBIN/CRON[1057]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ))
So, dann habe ich noch cat /etc/cron.daily/logrote aufgerufen und mal manuell
/usr/sbin/logrotate /etc/logrotate.conf
aufgerufen. Scheint funktioniert zu haben. cat /var/log/apache2:
Code: Select all
drwxr-x--- 2 root adm 4096 26. Apr 12:28 .
drwxr-xr-x 12 root root 4096 26. Apr 12:51 ..
-rw-r----- 1 root adm 227430 26. Apr 13:49 access.log
-rw-r----- 1 root adm 96124739 26. Apr 12:27 access.log.1
-rw-r----- 1 root adm 838286 5. Okt 2009 access.log.2.gz
-rw-r----- 1 root adm 110103 7. Sep 2009 access.log.3.gz
-rw-r----- 1 root adm 2210083 3. Sep 2009 access.log.4.gz
-rw-r----- 1 root adm 250688 1. Jul 2009 access.log.5.gz
-rw-r----- 1 root adm 1238724 23. Jun 2009 access.log.6.gz
-rw-r----- 1 root adm 75615 7. Mai 2009 access.log.7.gz
-rw-r----- 1 root adm 1337 26. Apr 13:45 error.log
-rw-r----- 1 root adm 11257295 26. Apr 12:28 error.log.1
-rw-r----- 1 root adm 72295 5. Okt 2009 error.log.2.gz
-rw-r----- 1 root adm 13072 7. Sep 2009 error.log.3.gz
-rw-r----- 1 root adm 471222 3. Sep 2009 error.log.4.gz
-rw-r----- 1 root adm 31247 1. Jul 2009 error.log.5.gz
-rw-r----- 1 root adm 176428 23. Jun 2009 error.log.6.gz
-rw-r----- 1 root adm 18162 7. Mai 2009 error.log.7.gz
-rw-r----- 1 root adm 0 23. Jun 2009 other_vhosts_access.log
-rw-r--r-- 1 root root 62964 18. Mai 2009 other_vhosts_access.log.1