/usr/share/doc/cereal/log-limits.txt is in cereal 0.24-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | Limiting log files in cereal
----------------------------
Cereal is controlled by runit, so the cereal log files are controlled
by the svlogd daemon.
Limiting the log files for session 'foo' is done by placing a svlogd
configuration file in the log directory for session 'foo':
/var/lib/cereal/sessions/foo/log/main/config
By default, svlogd keeps 10 old logfiles around with 1000000 bytes
(1MB) in each. If you wanted to keep 15 logfiles around with 2000000
bytes in each, you would do:
scs:0:~# cat > /var/lib/cereal/sessions/foo/log/main/config <<EOF
# limit to 15 log files of 2MB each:
s2000000
n15
EOF
scs:0:~#
See 'man svlogd' for more funky config options.
|