Daily emails from Cron to Root
I recently Installed postfix (and I redirected all emails to Gmail)
every day I receive an email from Cron to root@mydomain, that contains this message:
initctl: invalid command: reopen-logs
Try `initctl --help' for more information.
invoke-rc.d: initscript php5-fpm, action "reopen-logs" failed.
error: error running non-shared postrotate script for /var/log/php5-fpm.log of '/var/log/php5-fpm.log '
run-parts: /etc/cron.daily/logrotate exited with return code 1
the things that I have done recently:
- my Host name was not a fully qualified domain name so I changed it in Ubuntu hostname file to a domain (probably unrelated :) )
- I read somewhere to change cron mailto to " " will solve the problem. is it true?