mirror of
https://github.com/azlux/log2ram
synced 2024-11-23 13:56:30 +00:00
Compare commits
2 Commits
bf8f16bba6
...
2e8d06b807
Author | SHA1 | Date | |
---|---|---|---|
2e8d06b807 | |||
|
cd96c3c3e8 |
@ -129,6 +129,12 @@ If the `/var/log/journal` is very large, then there are a lot of system logs. De
|
||||
SystemMaxUse=20M
|
||||
```
|
||||
|
||||
**Or** the more radical version of directly flushing the journal to a size that matches log2ram size imediately _(Be aware that this flish flush the systemd journal logs imediately to the given size!)_
|
||||
|
||||
```bash
|
||||
journalctl --vacuum-size=32M
|
||||
```
|
||||
|
||||
This should be set to a value smaller than the size of the RAM volume; for example, half of it could be fine. Then, apply the new setting:
|
||||
|
||||
```bash
|
||||
|
1
log2ram
1
log2ram
@ -63,6 +63,7 @@ sync_from_disk() {
|
||||
|
||||
if [ -n "$(du -sh -t "$TP_SIZE" "$HDD_LOG"/ | cut -f1)" ]; then
|
||||
echo "ERROR: RAM disk for \"$HDD_LOG/\" too small. Can't sync."
|
||||
echo -e "File(s) causing issues\n: $(du -sh -t "$TP_SIZE" "$HDD_LOG"/*)"
|
||||
umount -l "$RAM_LOG"/
|
||||
umount -l "$HDD_LOG"/
|
||||
if [ "$MAIL" = true ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user