View Issue Details

IDProjectCategoryView StatusLast Update
0017874CentOS-8rsyslogpublic2021-01-21 15:32
Reporterocs Assigned To 
PrioritynormalSeveritytrivialReproducibilityalways
Status newResolutionopen 
Platformx86_64OSCentOSOS Version8
Product Version8.2.2004 
Summary0017874: a line in rsyslog.service prevents record messages at shutdown
Descriptionwhen 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 Reproducelogger 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 Informationif 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.
TagsNo tags attached.

Activities

ocs

ocs

2021-01-21 15:32

reporter   ~0038188

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

Issue History

Date Modified Username Field Change
2020-11-19 18:15 ocs New Issue
2021-01-21 15:32 ocs Note Added: 0038188