Is there a way on Solaris 10 U6 to set a system?s default milestone without incurring an immediate milestone transition?
I?m attempting to write a series of scripts to automate patching and I?d like to programmatically control the milestone the system boots to. Ideally I?d like to set the default milestone property and have it take affect when the system reboots. I have tried the following but each method sets the default and then immediately transitions to the specified milestone. # svcadm milestone -d svc:/milestone/single-user:default # svccfg -s restarter:default setprop options/milestone = svc:/milestone/single-user:default The specific issue I have is on the way back to run level 3 from single-user. After patching is complete, the script sets the default milestone to ?all? and then issues an `init 6`. Setting the default milestone to ?all? starts a transition and then init steps in and starts shutting everything down. Obviously I could wait for the transition to complete but my observation is that legacy rc scripts are also executed when transitioning from a ?lower? to ?higher? milestone so this could take some time, on say, on large database system. I would like to clean this up if at all possible but I have been unable to find a suitable approach. Message was edited by: mqw -- This message posted from opensolaris.org