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
}

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1350782

Title:
  Upstart does not reopen /var/log/upstart/* logfiles upon log rotation

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1350782/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to