Proper log-rotation for upstart
Every once in a while we receive an e-mail from cron-spawned logrotate with the following error:
gzip: stdin: file size changed while zipping
By matching the timestamp on the e-mail with that of the actual *.gz files under /var/log, I deduced, that these are all from the /var/log/upstart/
Indeed, running `lsof | grep /var/log/upstart/`, I can see the following three entries indicating, there remain files still opened (for writing!) although deleted from the filesystem:
init 1 root 8w REG 202,2 4795 39117 /var/log/
init 1 root 9w REG 202,2 766 39013 /var/log/
init 1 root 14w REG 202,2 190 5026 /var/log/
It would seem like the /etc/logrotate.
This is with upstart-
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- upstart Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: