Commit fb79d4db authored by Florian Pritz's avatar Florian Pritz
Browse files

common: Raise journald max files limit and disable error wall



Max files limit causes journald to be too agressive when cleaning up
old logs because it tries to stay under the limit. If there are enough
users on the system that won't happen and it will start removing system
logs way too soon (like after a few hours or days).
Signed-off-by: Florian Pritz's avatarFlorian Pritz <bluewind@xinu.at>
parent 28fef068
......@@ -3,3 +3,6 @@
- name: restart networkd
service: name=systemd-networkd state=restarted
- name: restarted journald
service: name=systemd-journald state=restarted
......@@ -35,6 +35,13 @@
notify:
- restart networkd
- name: configure journald
template: src={{item}}.j2 dest=/etc/systemd/{{item}} owner=root group=root mode=644
with_items:
- journald.conf
notify:
- restarted journald
- name: create zsh directory
file: path=/root/.zsh state=directory owner=root group=root mode=0700
......
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See journald.conf(5) for details.
[Journal]
#Storage=auto
#Compress=yes
#Seal=yes
#SplitMode=uid
#SyncIntervalSec=5m
#RateLimitIntervalSec=30s
#RateLimitBurst=1000
#SystemMaxUse=
#SystemKeepFree=
#SystemMaxFileSize=
SystemMaxFiles=2000
#RuntimeMaxUse=
#RuntimeKeepFree=
#RuntimeMaxFileSize=
#RuntimeMaxFiles=100
#MaxRetentionSec=
#MaxFileSec=1month
#ForwardToSyslog=no
#ForwardToKMsg=no
#ForwardToConsole=no
ForwardToWall=no
#TTYPath=/dev/console
#MaxLevelStore=debug
#MaxLevelSyslog=debug
#MaxLevelKMsg=notice
#MaxLevelConsole=info
#MaxLevelWall=emerg
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment