Add initialization to exitVal. Set exitVal after the call to the local rndc reload. Convert the looped call to rndc(8) to the variable containing the full path to rndc.
Add initialization to exitVal.
Set exitVal after the call to the local rndc reload.
Convert the looped call to rndc(8) to the variable containing the full path to rndc.

dklann/cpanel-tools,dklann/cpanel-tools