postrotate: command not found

Saturday, December 20th, 2008

If, while log rotating with the lovely logrotate, you get ‘sh: line 2: postrotate: command not found’ then you’re probably missing an endscript. This took me a while to notice. I found a number of people with the same problem, such as this chap, and if you look at his script he’s done exactly what [...]