sounds like you need to hup whatever is writing to that file during the logrotate postrotate stage. once a daemon like sendmail opens the file with the given name, that file is then used regardless of what it is called, so if you rename it, it's still got an open file handle and will still hav those messages written to it. by hupping the daemon, all files should be closed and then reopened, based on original configuration details. as such the new empty will be created and written to.
|