Score:1

Reboot-required – where to check?

fr flag

It is quite easy to check if the currently running system needs a restart. You check the existence of either /var/run/reboot-required or /run/reboot-required. But which one will also work tomorrow? On my system, /var/run is just a link to /run, so I guess there is a history here that explains things. Is it safe to just test /run/reboot-required?

Organic Marble avatar
us flag
That's what I do `cat /var/run/reboot-required.pkgs`
waltinator avatar
it flag
A safer way is to `cat /var/run/reboot*`. Sometimes the reboot hint is not in `/var/run/reboot-required.pkgs`
Score:0
cn flag

Checking for reboot-required and maybe checking the contents of reboot-required.pkgs has been the standard way of doing things on Debian / Ubuntu for quite a while. We're doing it at work with a fleet of 100's of VM's using icinga and SNMP extensions, never seen an issue with it..

Edited to say: We check /run/reboot-required not /var/run/reboot-required... /var/run is a symlink to /run..

  • Chris H.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.