By the way, run levels and rc*.d scripts are still supported but obsoleted by milestones and SMF in Solaris 10 and newer.
You should create a service manifest instead of the old System V method.
Sun Microsystems - BigAdmin: Solaris Service Management Facility - Service Developer Introduction