Maillog leer / bleibt leer: Unterschied zwischen den Versionen

Aus Glaskugel
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 5: Zeile 5:


1. delete all files and folders of directory "/var/log/journal". Make sure you have not deleted the journal directory itself.
1. delete all files and folders of directory "/var/log/journal". Make sure you have not deleted the journal directory itself.
:<code>rm -f /var/log/journal/*</code>
:<code>rm -rf /var/log/journal/*</code>


2. Now delete the imjournal state file. You can file the file at "/var/lib/rsyslog/imjournal.state". This file holds the state of rsyslog service for reading messages from journal directory.
2. Now delete the imjournal state file. You can file the file at "/var/lib/rsyslog/imjournal.state". This file holds the state of rsyslog service for reading messages from journal directory.

Version vom 11. März 2021, 10:04 Uhr

Wenn das maillog ( /var/log/maillog ) keine Einträge zeigt und auch nicht aktiv beschrieben wird, so hilft folgende Anleitung
Copy & Paste aus talk.plesk.com
PLESK-TALK

1. delete all files and folders of directory "/var/log/journal". Make sure you have not deleted the journal directory itself.

rm -rf /var/log/journal/*

2. Now delete the imjournal state file. You can file the file at "/var/lib/rsyslog/imjournal.state". This file holds the state of rsyslog service for reading messages from journal directory.

rm /var/lib/rsyslog/imjournal.state

3. Now restart the journal service using command "systemctl restart systemd-journald.service".

systemctl restart systemd-journald.service

4. Now restart the rsyslog service using command "systemctl restart rsyslog.service".

systemctl restart rsyslog.service