| author | Luke Hoersten <luke@hoersten.org> |
| Mon, 23 Mar 2026 23:38:04 -0500 | |
| changeset 251 | f9f96b8c092e |
| parent 249 | 3542951a98cb |
| permissions | -rw-r--r-- |
|
249
3542951a98cb
Fixed log rotation and log2ram sizing.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
1 |
# Sized to fit within log2ram's RAM disk. |
|
3542951a98cb
Fixed log rotation and log2ram sizing.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
2 |
# Defaults: daily, 7 rotations, compress immediately, max 50M per log. |
|
3542951a98cb
Fixed log rotation and log2ram sizing.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
3 |
# Worst case per log: 50M active + 7 x compressed ~ 100M |
|
3542951a98cb
Fixed log rotation and log2ram sizing.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
4 |
|
|
3542951a98cb
Fixed log rotation and log2ram sizing.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
5 |
daily |
|
3542951a98cb
Fixed log rotation and log2ram sizing.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
6 |
su root adm |
|
3542951a98cb
Fixed log rotation and log2ram sizing.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
7 |
rotate 7 |
|
3542951a98cb
Fixed log rotation and log2ram sizing.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
8 |
maxsize 50M |
|
3542951a98cb
Fixed log rotation and log2ram sizing.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
9 |
create |
|
3542951a98cb
Fixed log rotation and log2ram sizing.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
10 |
compress |
|
3542951a98cb
Fixed log rotation and log2ram sizing.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
11 |
include /etc/logrotate.d |