View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0017874 | CentOS-8 | rsyslog | public | 2020-11-19 18:15 | 2021-01-21 15:32 |
Reporter | ocs | Assigned To | |||
Priority | normal | Severity | trivial | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | x86_64 | OS | CentOS | OS Version | 8 |
Product Version | 8.2.2004 | ||||
Summary | 0017874: a line in rsyslog.service prevents record messages at shutdown | ||||
Description | when a reboot or halt is executed no trace is left in /var/log/messages. none of the daemons that are shutting down leave any message in the log file. /usr/lib/systemd/system/rsyslog.service | ||||
Steps To Reproduce | logger SHUTDOWN_AFTER_THIS tail /var/log/messages #check that you can see "SHOOTDOWN AFTER THIS" as the last line reboot grep -A5 SHUTDOWN_AFTER_THIS /var/log/messages #you should see the line "kernel: Command line: BOOT_IMAGE=" ... indicating the beguining of the boot, right after the manually loged message "SHUTDOWN_AFTER_THIS" so no daemon has recorded anything in "/var/log/messages" during the shutdown. # this is not happening in CentOS7 | ||||
Additional Information | if the line 19 from the file " /usr/lib/systemd/system/rsyslog.service" : LimitNOFILE=16384 is commented ("#" at the beginning of the line) and systemctl daemon-reload is executed. then the daemons now leave messages in the /var/log/messages file when the reboot command is executed. | ||||
Tags | No tags attached. | ||||
I've just realized that syslog messages were not being saved in /var/log/messages again. I checked /usr/lib/systemd/system/rsyslog.service and it was back to the original file. (probably due to an update) I commented the line 19 again an executed: systemctl daemon-reload now it is working again, messages are beeing recorded and my script that sends and email at boot and at shutdown works again |
|