1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Logrotate: which ones are in use

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by Andres Ba, Sep 2, 2009.

  1. Andres Ba

    Andres Ba Guest

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

    This one should be the system one:

    And then I have these ones:

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

    are they both called?

    thanks in advance,

  2. Maa

    Maa Guest

    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.
  3. Andres Ba

    Andres Ba Guest

    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,