Current Path : /proc/3/task/3/cwd/proc/2/cwd/opt/zabbix_scripts/ |
Current File : //proc/3/task/3/cwd/proc/2/cwd/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}'