[SERVER-29963] Include log rotate scripts into deb and rpm packages Created: 03/Jul/17  Updated: 06/Dec/22  Resolved: 12/Oct/22

Status: Closed
Project: Core Server
Component/s: Packaging
Affects Version/s: None
Fix Version/s: 4.1 Desired

Type: Improvement Priority: Major - P3
Reporter: Alexander Komyagin Assignee: [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-5325 Rolling Log Files Closed
Duplicate
duplicates SERVER-1865 Official Linux packages don't set up ... Closed
Assigned Teams:
Server Development Platform
Participants:

 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


Generated at Thu Feb 08 04:22:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.