1
0
mirror of https://github.com/azlux/log2ram synced 2024-11-23 13:56:30 +00:00
log2ram/log2ram.logrotate
2019-04-09 23:52:22 +01:00

26 lines
685 B
Plaintext

# These settings will save the rotated logfiles to a seperate location.
# This file needs to be located in /etc/logrotate.d.
# The "00" prefix in the file name is required to ensure this file is
# loaded before any program specific logrotate settings are loaded as
# contents of /etc/logrotate.d are read in alphabetical order.
# The path & name for rotated logfiles folder.
olddir /var/log.old
# Create the path if it doesn't exist
createolddir 755 root root
# To allow the files to be "moved" (ie copied and original deleted)
# to another device/partition (eg out of RAM)
renamecopy
/var/log/log2ram.log
{
rotate 7
daily
missingok
notifempty
delaycompress
compress
}