add 'svcadm clear' to run when service is in maintenance mode

+ used bash to do the conditional, avoiding trying to check Pallet NodeValues