Skip to content

Commit

Permalink
setup-util-log2ram: also rotate logs, and reduce vacuum to 1h
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Aug 23, 2023
1 parent 9f2858c commit f4061f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion commands/setup-util-log2ram
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ function setup_util_log2ram() (
fi

# cleanup
sudo-helper -- journalctl --vacuum-time=1d
sudo-helper -- journalctl --rotate
sudo-helper -- journalctl --vacuum-time=1h
service-helper --enable --start --status --logs -- log2ram logrotate
sudo-helper -- du -hs /var/log/* | sort -h | tail -n 3
df -h
Expand Down

0 comments on commit f4061f0

Please sign in to comment.