• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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