• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Cron config

2

2danis2do

Guest
Hi Guys,

Currently getting the following message:

/etc/cron.daily/logrotate:

error: m:1 unknown option 'logrotate' -- ignoring line
error: m:1 unexpected text

Looking in

/etc/logrotate.d


I have the following files:

clamav.rpmsave drweb-update m rpm sw-sso yum
drwebd httpd named sa-update syslog

looking in m I have the following:

logrotate state -- version 2


My question is what are the correct files that are supposed to me in /etc/logrotate.d and in particular, what is the correct entry for m. IS m the correct file name? I guess this is supposed to contain direction for rotatin gthe mail log but this is located not in /var/log but in /usr/local/psa/var/log/ . Also can i simply remove the file m if this is handled elsewhere?

regards,

Dan
 
I have checked it on fresh installed Plesk 9.3.0 and not found any m file in /etc/logrotate.d directory. You can try to find package where this file is included with

rpm -qf /etc/logrotate.d/m

or

dpkg -S /etc/logrotate.d/m
But I think that it can be safely deleted.
 
Thanks,

rpm -qf /etc/logrotate.d/m
file /etc/logrotate.d/m is not owned by any package

Have now removed this file. Not sure where it came from.

D
 
Back
Top