We have a configuration script that basically does svcadm enable -s $ourservice if the service is in maintenance mode svcadm clear $ourservice
in the hopes that the clear will bring the service online. My instinctive reaction is that the service shouldn't go into maintenance mode in the first place if clearing it would repair it, and so logic like this is not appropriate. Any opinions?