Wednesday, 15 July 2015

Linux: How to restart syslog

If, for some reason, /var/log/maillog has been deleted, and logs are no longer appended on the maillog file, retart syslog and postfix.
  • sudo service rsyslog status => check the status of rsyslog and get the PID
  • sudo kill -HUP 1342  => restart syslog. alternatively, you can use sudo kill - HUP 'cat /var/syslogd.pid'
  • postfix reload => to restart postfix
Then try sending mail again to see if logs are being appended on maillog file.

No comments:

Post a Comment