Comment 10 for bug 1350782

Revision history for this message
Walter (wdoekes) wrote :

A google search turned up this as the most likely candidate for my logrotate+gzip issues.

I'm going to try this for a workaround:

/var/log/upstart/*.log {
        daily
        missingok
        rotate 7
        compress
        notifempty
        nocreate

# Added by wjd 2017-03 for launchpad bug #1350782
        delaycompress
        sharedscripts
        postrotate
                lsof | awk '/ \/var\/log\/upstart\/.*\.log.+/{print $9}' | sed -e 's#.*/##;s#\..*##' | xargs -IX service X restart >/dev/null
        endscript
}