* 2022-05-26 09:58:19-0700, Peter Ehlert wrote:
> On 5/26/22 08:15, IL Ka wrote:
>> 30 GB of logs, wow. Do you use logrotate?
> No, not that I am aware of.
You can safely delete old log files with "rm" command.
I guess that you use laptop mostly without power supply connected. Many
system maintenance routines (including logrotate) newer run in such
condition because the systemd service unit has this condition:
ConditionACPower=true
I always add an override file for some systemd units, for example:
$ sudo systemctl edit logrotate.service
Edit file's content so that it has this:
[Unit]
ConditionACPower=
After editing you can verify the unit file with:
$ systemctl cat logrotate.service
--
/// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/
// OpenPGP: 6965F03973F0D4CA22B9410F0F2CAE0E07608462
Attachment:
signature.asc
Description: PGP signature