• 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

Logrotate: which ones are in use

A

Andres Ba

Guest
Hi everyone,
I have 3 logrotate.conf in my system:

This one should be the system one:
/etc/logrotate.conf

And then I have these ones:
/etc/psa/logrotate.conf
/usr/local/psa/etc/logrotate.conf

why do I have two? Is that right? The settings are very similar in the two files.

are they both called?

thanks in advance,

Andres
 
You can check system logrotate.conf location like this:

# grep rotate /etc/cron*/*
/etc/cron.daily/logrotate:/usr/sbin/logrotate /etc/logrotate.conf

Logrotate in Plesk seems to be hard-coded to psa/etc/logrotate.conf

Also, as far as I know Plesk logrotate configs also were here (path above) so origin of /etc/psa/logrotate is unknown.
Most probably it is not used.
 
You can check system logrotate.conf location like this:

# grep rotate /etc/cron*/*
/etc/cron.daily/logrotate:/usr/sbin/logrotate /etc/logrotate.conf

Logrotate in Plesk seems to be hard-coded to psa/etc/logrotate.conf

Also, as far as I know Plesk logrotate configs also were here (path above) so origin of /etc/psa/logrotate is unknown.
Most probably it is not used.

grep rotate /etc/cron*/* does return the path to the system rotate.conf (which I expected being /etc/logrotate.conf).

I'm not so sure of what's plesk logrotate.conf path, because searching the forums, both paths appears. yet seems hard to believe that 2 are used.

my guess is that one was used by a previous version of plesk and that at some point the location was changed.

thanks for your suggestion,

Andres
 
Back
Top