logrotate und unexpected log filename
Für alle, die auch erst mal nicht gleich verstanden haben, was die Fehlermeldung besagt…
Zuerst mal mit logrotate -d /pfad/zur/config debuggen.
home:~# logrotate -d /etc/logrotate.d/sample
reading config file /etc/logrotate.d/sample
error: /etc/logrotate.d/sample:10 unexpected log filename
error: found error in /var/log/sample/*log , skipping
removing last 1 log configs
Handling 0 logs
Besagte Config-Datei öffnen.
Logrotate sagt einem sogar GANZ GENAU, in welcher Zeile der Fehler steckt.
(in diesem Falle Zeile 10)
Zuvor stand da:
/var/log/sample/*log {
	copytruncate
	weekly
	compress
	delaycompress
	rotate 52
	missingok
	create 640 root root
	sharedscripts
	/usr/bin/killall -HUP sample
	endscript
}
Und damit das richtig wird:
/var/log/sample/*log {
	copytruncate
	weekly
	compress
	delaycompress
	rotate 52
	missingok
	create 640 root root
	sharedscripts
	service sample reload
	endscript
}

