Set systemd journald log retention to 10 days (from no limit) to reduce disk usage
This commit is contained in:
parent
34b7a02f4f
commit
d1d6318862
2 changed files with 8 additions and 0 deletions
|
@ -20,6 +20,7 @@ Control panel:
|
||||||
|
|
||||||
Other:
|
Other:
|
||||||
|
|
||||||
|
* Set systemd journald log retention to 10 days (from no limit) to reduce disk usage.
|
||||||
* Fixed log processing for submission lines that have a sasl_sender or other extra information.
|
* Fixed log processing for submission lines that have a sasl_sender or other extra information.
|
||||||
|
|
||||||
Version 55 (October 18, 2021)
|
Version 55 (October 18, 2021)
|
||||||
|
|
|
@ -75,6 +75,13 @@ then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# ### Set log retention policy.
|
||||||
|
|
||||||
|
# Set the systemd journal log retention from infinite to 10 days,
|
||||||
|
# since over time the logs take up a large amount of space.
|
||||||
|
# (See https://discourse.mailinabox.email/t/journalctl-reclaim-space-on-small-mailinabox/6728/11.)
|
||||||
|
tools/editconf.py /etc/systemd/journald.conf MaxRetentionSec=10day
|
||||||
|
|
||||||
# ### Add PPAs.
|
# ### Add PPAs.
|
||||||
|
|
||||||
# We install some non-standard Ubuntu packages maintained by other
|
# We install some non-standard Ubuntu packages maintained by other
|
||||||
|
|
Loading…
Reference in a new issue