Comment 2 for bug 1350782

Revision history for this message
James Hunt (jamesodhunt) wrote :

This is incorrect - Upstart does reopen log files when a job produces output *after* the log file has been deleted.

So in normal operation, logrotate will run and say rotate foo.log to foo.log.1.gz. At this point, the file associated with the fd for foo.log will indeed show as deleted. But, if and only if that job produces any further output Upstart will recreate foo.log. If the job produces no further output the log will not be recreated. Once the job has stopped, the fd associated with the deleted file will be closed.

If this is not what you are seeing please provide further details.