Current Path : /proc/self/root/opt/zabbix_scripts/ |
Current File : //proc/self/root/opt/zabbix_scripts/checkRebootRequired.sh |
#!/bin/bash # API Function Documentation # https://documentation.cpanel.net/display/DD/WHM+API+1+Functions+-+system_needs_reboot /sbin/whmapi1 system_needs_reboot | grep -E '^\ \ needs_reboot:\ [0-1]{1}$' | awk '{print $2}'