1/12/2023 0 Comments Utime and stime stat![]() ![]() Examine /proc/stat and /proc/uptime of both host and container. Check that needs-restarting still suggests a boot. Check that needs-restarting suggests a rebootĤ. Installing openssl updates makes needs-restart show a reboot message that doesn't go away if you reboot.ġ. localtime makes corrections for time zones and possible daylight savings time. This value can be obtained from the function time. The timet value stime is the seconds elapsed since 00:00:00 on January 1, 1968. Version-Release number of selected component (if applicable): struct tm localtime(timet stime) Description localtime converts a time stored as a timet value to the structure tm. Given the age of EL7, though, I understand this is probably not going to change- I'm mostly filing this bug to document this issue. Uptime gets the correct boot time by using /proc/uptime.Īlthough maybe this would be a bug in the container environment, I believe it would be simpler if needs-restarting behaved consistently with the uptime command. In some container environments (I'm using LXC on Proxmox), this shows the host boot time, not the container time. Needs-restarting checks /proc/stat for boot time. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |