• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

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