Skip to content

Programatically Check If System Requires Restart

View on Twitter

💡 How do you programatically find out if a system needs to be restarted?

👉🏼 Check for the existence of "/var/run/reboot-required" file. Also, "/var/run/reboot-required.pkgs" shows the related packages.

Run cat /var/run/reboot-required to check if system requires a reboot. cat /var/run/reboot-required.pkgs shows the packages that involved.

Download the VPS Security Cheatsheet

Use this FREE security cheatsheet to not miss a step when securing your VPS.

A preview of the VPS Security Cheatsheet.

You'll also get tips on building scalable Node.js applications about twice a month. I respect your email privacy. Unsubscribe any time.

You might also like
Debug Requests Using a Mirror API Read tip
Nginx Location Match Tester Read tip
List Globally Installed NPM Libraries Read tip