codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
1 # see "man logrotate" for details 2 # rotate log files weekly 3 weekly 4 5 # keep 4 weeks worth of backlogs 6 rotate 4 7 8 # create new (empty) log files after rotating old ones 9 create 10 11 # uncomment this if you want your log files compressed 12 #compress 13 14 # packages drop log rotation information into this directory 15 include /etc/logrotate.d 16 17 # no packages own wtmp, or btmp -- we'll rotate them here 18 /var/log/wtmp { 19 missingok 20 monthly 21 create 0664 root utmp 22 rotate 1 23 } 24 25 /var/log/btmp { 26 missingok 27 monthly 28 create 0660 root utmp 29 rotate 1 30 } 31 32 # system-specific logs may be configured here ~
Private
[
?
]
Run code
Submit