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|
|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.
|Steps To Reproduce||logger SHUTDOWN_AFTER_THIS|
#check that you can see "SHOOTDOWN AFTER THIS" as the last line
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" :|
is commented ("#" at the beginning of the line)
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:
now it is working again, messages are beeing recorded and my script that sends and email at boot and at shutdown works again