Code: Alles auswählen
/etc/cron.daily/logrotate: error running shared postrotate script for /var/log/apache/*.log
is76> run-parts: /etc/cron.daily/logrotate exited with return code 1
jmd eine Idee wie ich das verhindern kann?
Code: Alles auswählen
/etc/cron.daily/logrotate: error running shared postrotate script for /var/log/apache/*.log
is76> run-parts: /etc/cron.daily/logrotate exited with return code 1
Code: Alles auswählen
# see "man logrotate" for details
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4
# create new (empty) log files after rotating old ones
create
# uncomment this if you want your log files compressed
#compress
# packages drop log rotation information into this directory
include /etc/logrotate.d
# no packages own wtmp, or btmp -- we'll rotate them here
/var/log/wtmp {
monthly
create 0664 root utmp
rotate 1
}
/var/log/btmp {
missingok
monthly
create 0664 root utmp
rotate 1
}
# system-specific logs may be configured here
Code: Alles auswählen
/var/log/apache/*.log {
weekly
missingok
rotate 52
compress
delaycompress
notifempty
create 640 root adm
sharedscripts
postrotate
/etc/init.d/apache reload > /dev/null
endscript
}
Code: Alles auswählen
ls -la /var/log/apache
-rw-r----- 1 root adm 1526633 Apr 7 12:05 access.log
-rw-r----- 1 root adm 403050 Apr 4 04:29 access.log.1
-rw-r----- 1 root adm 2956 Mar 28 01:58 access.log.2.gz
-rw-r----- 1 root adm 1769 Mar 21 00:46 access.log.3.gz
-rw-r--r-- 1 root root 2129 Mar 14 04:02 access.log.4.gz
Code: Alles auswählen
postrotate
sh -x /etc/init.d/apache reload >/tmp/logdatei 2>&1
endscript