Question : Cron Error with 1 and 1 dedicated server - linux

Hi Experts,

I have Plesk 9 running on a 1and1 dedicated Linux, Apache server - I keep getting the following error emailed to me:

/etc/cron.daily/logrotate:

error: error accessing /var/log/exim: No such file or directory
error: exim:3 glob failed for /var/log/exim/*log
/etc/cron.daily/prelink:

/etc/cron.daily/prelink: line 45: /var/log/prelink/prelink.log: No such file or directory
/etc/cron.daily/prelink: line 46: /var/log/prelink/prelink.log: No such file or directory
/etc/cron.daily/prelink: line 47: /var/log/prelink/prelink.log: No such file or directory

What should I do in this circumstance?

Many thanks for you help

Answer : Cron Error with 1 and 1 dedicated server - linux

Another choice is:

+++ For exim:
- ensure /etc/logrotate.conf has "notifempty" as a global option (not in a curly bracket group).
- create the missing log file;
-- mkdir /var/log/exim/
-- touch /var/log/exim/log.
Now logrotate will not complain and, should you in future enable esim, logrotate will rotate its logs without requiring any further intervention from you.

+++For prelink
chmod a-x /etc/cron.daily/prelink
cron will then not try to execute that file
Random Solutions  
 
programming4us programming4us