Bug#691650: mediatomb: Error in logrotate when package is in config-files state

Guillem Jover guillem at debian.org
Sun Oct 28 01:29:49 UTC 2012


Package: mediatomb
Version: 0.12.1-4
Severity: normal
Tags: patch

Hi!

The logrotate file for mediatomb is using pkill to send a HUP signal
to the server to close/reopen the log files, but this fails if the
daemon is not running. The correct way to do that is to use the init
script with the reload action, which should handle all these cases
correctly. The following logrotate file would do:

,---
"/var/log/mediatomb.log" {
	weekly
	rotate 12
	missingok
	postrotate
		/etc/init.d/mediatomb reload >/dev/null
	endscript
}
`---

thanks,
guillem



More information about the pkg-multimedia-maintainers mailing list