[Bug 1130611] Re: Upstart never closes /var/log/upstart/mysql.log

Steve Langasek steve.langasek at canonical.com
Wed Feb 20 17:42:16 UTC 2013


Why are you expecting upstart to close this file?  There is no logrotate
integration for /var/log/upstart log files in the Ubuntu package; if
you've added logrotate rules that rotate logfiles without restarting the
associated services, this seems to be the expected behavior.

Now, we probably do want to integrate logrotate with upstart; but this
is clearly not the way to do it.  We probably need a new initctl
interface to ask upstart to reopen log files for individual jobs without
restarting the actual job processes.

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

Title:
  Upstart never closes /var/log/upstart/mysql.log

Status in “upstart” package in Ubuntu:
  New

Bug description:
  I ran "init u" after noticing a lingering FD to a log file that lsof
  showed as "(deleted)". However because the file handle is never
  closed, and the log files get logrotate'd it keeps happening, like so:

  init      1 root   11w   REG              252,0     3532  394558
  /var/log/upstart/mysql.log.1 (deleted)

  It's possible this might be fixed by a version update, as I noticed
  there were closed bugs relating to "leaked" file descriptors?

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




More information about the foundations-bugs mailing list