Merge pull request #427 from annanymous2/patch-1

Added endscript on logrotate