Avoid warning from systemd by reloading the daemon after chaning journald config

This commit is contained in:
Johannes Zellner
2017-01-23 11:01:02 +01:00
parent c0b2b1c26d
commit db8db430b9
+1
View File
@@ -148,6 +148,7 @@ sed -e "s/^WatchdogSec=.*$/WatchdogSec=3min/" \
usermod -a -G systemd-journal yellowtent
mkdir -p /var/log/journal # in some images, this directory is not created making system log to /run/systemd instead
chown root:systemd-journal /var/log/journal
systemctl daemon-reload
systemctl restart systemd-journald
setfacl -n -m u:yellowtent:r /var/log/journal/*/system.journal