Uploaded image for project: 'MCollective'
  1. MCollective
  2. MCO-740

logrotate starts mcollective

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • MCO 2.8.6
    • None
    • None
    • None
    • Bolt
    • Bolt Kanban
    • Bug Fix
    • MCollective now relies on its internal log rotation only, so logrotate will no longer trigger restarting the service.

    Description

      The logrotate task starts 'mcollective' daemon, even when it's configured to remain stopped.

      /var/log/puppetlabs/mcollective.log {
          missingok
          notifempty
          sharedscripts
          postrotate
              /etc/init.d/mcollective restart >/dev/null 2>&1 || true
          endscript
      }
      

      The postrotate task should be something like the 'pxp-agent':

      postrotate
          [ -s /var/run/puppetlabs/pxp-agent.pid ] && kill -USR2 `cat /var/run/puppetlabs/pxp-agent.pid`
      endscript
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fbarbeira FĂ©lix Barbeira
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support