I get the following email from Cron on a couple of my gentoo servers:
Code:
To: root
Subject: Cron <root@www2> test -x /usr/sbin/run-crons && /usr/sbin/run-crons
sh: line 2: postrotate: command not found
sh: line 2: postrotate: command not found
sh: line 2: postrotate: command not found
I don't know why this happens on these two and not on all the other gentoo servers I have. I can't tell which logrotate script is generating the errors but as far as I know postrotate is valid inside logrotate scripts so I can't see why this erorr is happening.
So how do I stop these errors?