handle logrotates
close file descriptor when just seeking
Merge pull request #3 from dodo/master

logrotate