Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-29963

Include log rotate scripts into deb and rpm packages

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 4.1 Desired
    • Component/s: Packaging
    • Labels:
      None

      Description

      Spin off from SERVER-5325. Simple log rotate example for 3.4+:

      /var/log/mongodb/*.log {
        daily
        missingok
        rotate 5
        compress
        dateext
        delaycompress
        sharedscripts
        postrotate
             /usr/bin/kill -SIGUSR1 `/usr/bin/cat /var/run/mongod.pid`
        endscript
        notifempty
      }
      

      The default mongod.conf should also be altered to set log rotate behavior to "reopen" and pidfile set to /var/run/mongod.pid

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-build Backlog - Build Team
              Reporter:
              alex.komyagin Alexander Komyagin
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated: