Server Administration
System Information
Return whether system needs reboot
This function determines if your system requires a reboot to apply quotas, software package updates, or kernel updates.
Important:
This function cannot detect whether your system needs a reboot if you use cPanel & WHM inside of a Linux Container (LXC).
get/system_needs_reboot
Response
HTTP Request was successful.
Example response
{
"details": {
"kernel": {
"boot_version": "3.10.0-514.10.2.e17.x86_64",
"running_version": "3.10.0-514.10.2.e17.x86_64"
},
"quota": 1,
"updates": {
"glibc": "2.17-157.el7_3.1"
}
},
"metadata": {
"command": "system_needs_reboot",
"reason": "OK",
"result": 1,
"version": 1
},
"needs_reboot": 1
}