Check if server needs a restart via SSH?

Arkaic

Active Member
Jun 23, 2015
39
7
58
United Kingdom
cPanel Access Level
Root Administrator
Hey there,

Is it possible to check if a cPanel server requires a restart for updates (i.e. "You must reboot the server to apply software updates.") in SSH?

i.e. /usr/bin/needs-restarting (--reboothint)
?
Is this all cPanel checks before displaying the message?


I'm looking to automate a way to check numerous servers to see if they need a restart.

Thanks in advance.
 
Last edited:
  • Like
Reactions: rarod

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,269
313
Houston