Skip to main content

Error in syslog logrotate command sequence?

Comments

3 comments

  • cPRex Jurassic Moderator

    Hey there!  I just checked a default cPanel version 126 machine and this is what I see inside /etc/logrotate.d/syslog

    /var/log/cron
    /var/log/maillog
    /var/log/messages
    /var/log/secure
    /var/log/spooler
    {
        missingok
        sharedscripts
        postrotate
            /usr/bin/systemctl -s HUP kill rsyslog.service >/dev/null 2>&1 || true
        endscript
    }

    so I'm not seeing the "compress" option there by default.  Was that added manually at some point possibly?

    0
  • Jim McLaughlin

    I would have had no reason to change it.

    This is helpful, and I will make sure I'm consistent with the default, which is fine.

    Appreciate the assistance!

    0
  • cPRex Jurassic Moderator

    You're very welcome!

    0

Please sign in to leave a comment.