Maillog leer / bleibt leer

Aus Glaskugel
Zur Navigation springen Zur Suche springen
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 -f /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