Is there a way to track uptime across kexec[1] restarts? That way you could differentiate between a hard reboot and  &quot;soft&quot; one (ex: automated kernel upgrade). Having a system like that working for a 18 years would be insane!<p>[1]: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Kexec" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Kexec</a>