Question
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:
/etc/cron.daily/logrotate:
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?
tnx
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
Changing mailto will keep the error from showing up, but you will still have the specified problem. Are you sure that is what you want to do?