Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-2445

Logrotate config missing from RHEL RPM package

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 2.2.20
    • 2.3.8
    • Packaging
    • None
    • MXS-SPRINT-83, MXS-SPRINT-84

    Description

      MariaDB-provided RPM package lack a logrotate configuration. MaxScale comes with logginig to /var/log/maxscale/maxscale.log enabled hence he file grows indefinitely.

      It is a common and good practice for RPM packages to provide a logrotate config for each log file, written by the package.

      Sample logrotate file (not necessarily best one - I spotted that SIGUSR1 whould cause MAxScale to reopen logs, but have not tested this; the more usual kill -HUP <pid_file> seems not to do this):

      /var/log/maxscale/maxscale.log

      { daily rotate 30 missingok notifempty compress sharedscripts postrotate systemctl restart maxscale endscript }

      Attachments

        Activity

          People

            esa.korhonen Esa Korhonen
            assen.totin Assen Totin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.