Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Logrotate

ZeroC0D3 Team edited this page Jan 19, 2018 · 2 revisions

Logrotate

Log rotation for development/staging and production

Development / Staging

  • Configuration logrotate for development/staging
#/etc/logrotate.conf

/home/deploy/zeroc0d3lab.dev/shared/log/*.log {
  size 1024k
  daily
  missingok
  rotate 7
  compress
  delaycompress
  notifempty
  copytruncate
  maxage 60
}

Production

  • Configuration logrotate for production
#/etc/logrotate.conf

/home/deploy/zeroc0d3lab/shared/log/*.log {
  size 1024k
  daily
  missingok
  rotate 7
  compress
  delaycompress
  notifempty
  copytruncate
  maxage 60
}

Running / Activate Logrotate

sudo /usr/sbin/logrotate /etc/logrotate.conf
Clone this wiki locally