After I switched to running mpd system-wide, I started getting emails like the following from cron: error: Compressing program wrote following message to stderr when compressing log /var/lib/mpd/log-20170611: gzip: stdin: file size changed while zipping Looks to me the logrotate bit needs the "delaycompress" option.
"copytruncate" logrotate option instead "postrotate, /etc/init.d/mpd reload, endscript" might also work? Sep 17 03:10 : log: error re-opening log file: /var/lib/mpd/log I get this error with media-sound/mpd-0.20.10 to end of gzipped log and nothing gets logged after rotate.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85d2b11e7ec087540d5ba07697ee5bbb93136291 commit 85d2b11e7ec087540d5ba07697ee5bbb93136291 Author: Mikle Kolyada <zlogene@gentoo.org> AuthorDate: 2018-09-28 20:04:13 +0000 Commit: Mikle Kolyada <zlogene@gentoo.org> CommitDate: 2018-09-28 20:08:06 +0000 media-sound/mpd: revbump to fix logrotate settings Closes: https://bugs.gentoo.org/621614 Package-Manager: Portage-2.3.49, Repoman-2.3.10 media-sound/mpd/files/mpd-0.20.21.logrotate | 9 + media-sound/mpd/mpd-0.20.21-r1.ebuild | 270 ++++++++++++++++++++++++++++ 2 files changed, 279 insertions(+)