Sample Header Ad - 728x90

Did my Linux host restart?

0 votes
2 answers
290 views
I am running AlmaLinux 9, and it has been running stable for some time. This morning I received email messages that a systemd service had restarted on its own overnight. Strange, since this service is NOT set to autorestart, just start with system. The host is on a UPS so there shouldn't have been any strange power issues. I checked the boot log, and the "last" command shows: reboot system boot 5.14.0-284.25.1. Mon Nov 20 02:15 still running reboot system boot 5.14.0-284.25.1. Sun Oct 29 15:24 still running reboot system boot 5.14.0-284.25.1. Thu Oct 26 10:57 - 11:07 (2+00:09) reboot system boot 5.14.0-284.25.1. Wed Oct 25 17:13 - 17:16 (00:03) reboot system boot 5.14.0-284.25.1. Fri Oct 20 11:56 - 17:10 (5+05:13) reboot system boot 5.14.0-284.25.1. Wed Oct 18 20:25 - 11:51 (15:26) reboot system boot 5.14.0-284.25.1. Tue Oct 17 04:52 - 11:51 (2+06:59) reboot system boot 5.14.0-284.25.1. Fri Sep 29 15:45 - 11:51 (19+20:06) reboot system boot 5.14.0-284.25.1. Sat Sep 23 09:09 - 14:56 (6+05:46) reboot system boot 5.14.0-284.25.1. Tue Sep 19 20:14 - 09:09 (3+12:55) reboot system boot 5.14.0-284.25.1. Tue Sep 19 19:21 - 19:57 (00:35) reboot system boot 5.14.0-284.25.1. Sun Sep 10 20:23 - 18:01 (8+21:37) reboot system boot 5.14.0-284.25.1. Sun Sep 10 16:18 - 20:23 (04:04) reboot system boot 5.14.0-284.25.1. Fri Sep 8 20:53 - 19:56 (23:03) reboot system boot 5.14.0-284.25.1. Fri Sep 8 20:43 - 20:52 (00:08) reboot system boot 5.14.0-284.25.1. Fri Sep 8 20:27 - 20:43 (00:15) reboot system boot 5.14.0-284.25.1. Fri Sep 8 19:10 - 20:26 (01:16) reboot system boot 5.14.0-284.25.1. Fri Sep 8 16:25 - 18:52 (02:26) reboot system boot 5.14.0-284.11.1. Fri Sep 8 19:50 - 16:24 (-3:25) Which doesn't make sense...how can the top two lines both be "still running"? Or am I misinterpreting what this means? I check uptime --pretty and it says: up 8 hours, 49 minutes Yet my /var/log/messages file does not show any system restart related messages around 9 hours ago...just regular logging. What is going on? Uptime says my host rebooted this morning, "last" says the Oct 29 start is still running (but so is a Nov 20 / today start), and the system logs shows no indication of a restart in the last 24 hours. This makes no sense
Asked by TSG (1983 rep)
Nov 20, 2023, 03:11 PM
Last activity: Nov 20, 2023, 05:28 PM