Advertisement
Guest User

cat logrotate

a guest
Aug 17th, 2011
879
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.65 KB | None | 0 0
  1. $:/var/log# cat /etc/logrotate.conf
  2. # see "man logrotate" for details
  3. # rotate log files weekly
  4. weekly
  5.  
  6. # keep 4 weeks worth of backlogs
  7. rotate 4
  8.  
  9. # create new (empty) log files after rotating old ones
  10. create
  11.  
  12. # uncomment this if you want your log files compressed
  13. compress
  14.  
  15. # packages drop log rotation information into this directory
  16. include /etc/logrotate.d
  17.  
  18. # no packages own wtmp, or btmp -- we'll rotate them here
  19. /var/log/wtmp {
  20.     missingok
  21.     monthly
  22.     create 0664 root utmp
  23.     rotate 1
  24. }
  25.  
  26. /var/log/btmp {
  27.     missingok
  28.     monthly
  29.     create 0660 root utmp
  30.     rotate 1
  31. }
  32.  
  33. # system-specific logs may be configured here
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement