proposed /etc/logrotate.d/mpd: # MPD logrotate snipet for Gentoo Linux # /var/log/mpd/*log { missingok postrotate /etc/init.d/mpd restart > /dev/null 2>&1 || true endscript } (untested yet) ATM: ls -lh /var/log/mpd/ total 39M -rw-r--r-- 1 root root 39M Sep 15 17:12 mpd.log since january ...
the logrotate flag is deprecated. packages should just install the logrotate snippet unconditionally.
Feel free to merge the proposed file with or without flag :) side issue: if mpd is installed, but not configured to start at boot time, this will start it anyway ... so, the restart line should be changed to sth like /etc/init.d/mpd status | grep started && ... This bug of course depends on bug 336615
mpd-0.17 adds the ability to start a new log file on SIGHUP. 0.17.4-r2 and newer install a logrotate file similar to yours.